upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
106 lines (90 loc) • 4.12 kB
JavaScript
/*
* OpenAPI definition
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v0
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 3.0.66
*
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD.
define(['expect.js', '../../src/index'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
factory(require('expect.js'), require('../../src/index'));
} else {
// Browser globals (root is window)
factory(root.expect, root.UpstoxClient);
}
}(this, function(expect, UpstoxClient) {
'use strict';
var instance;
describe('(package)', function() {
describe('GttOrderDetails', function() {
beforeEach(function() {
instance = new UpstoxClient.GttOrderDetails();
});
it('should create an instance of GttOrderDetails', function() {
// TODO: update the code to test GttOrderDetails
expect(instance).to.be.a(UpstoxClient.GttOrderDetails);
});
it('should have the property type (base name: "type")', function() {
// TODO: update the code to test the property type
expect(instance).to.have.property('type');
// expect(instance.type).to.be(expectedValueLiteral);
});
it('should have the property exchange (base name: "exchange")', function() {
// TODO: update the code to test the property exchange
expect(instance).to.have.property('exchange');
// expect(instance.exchange).to.be(expectedValueLiteral);
});
it('should have the property quantity (base name: "quantity")', function() {
// TODO: update the code to test the property quantity
expect(instance).to.have.property('quantity');
// expect(instance.quantity).to.be(expectedValueLiteral);
});
it('should have the property product (base name: "product")', function() {
// TODO: update the code to test the property product
expect(instance).to.have.property('product');
// expect(instance.product).to.be(expectedValueLiteral);
});
it('should have the property rules (base name: "rules")', function() {
// TODO: update the code to test the property rules
expect(instance).to.have.property('rules');
// expect(instance.rules).to.be(expectedValueLiteral);
});
it('should have the property tradingSymbol (base name: "trading_symbol")', function() {
// TODO: update the code to test the property tradingSymbol
expect(instance).to.have.property('tradingSymbol');
// expect(instance.tradingSymbol).to.be(expectedValueLiteral);
});
it('should have the property instrumentToken (base name: "instrument_token")', function() {
// TODO: update the code to test the property instrumentToken
expect(instance).to.have.property('instrumentToken');
// expect(instance.instrumentToken).to.be(expectedValueLiteral);
});
it('should have the property gttOrderId (base name: "gtt_order_id")', function() {
// TODO: update the code to test the property gttOrderId
expect(instance).to.have.property('gttOrderId');
// expect(instance.gttOrderId).to.be(expectedValueLiteral);
});
it('should have the property expiresAt (base name: "expires_at")', function() {
// TODO: update the code to test the property expiresAt
expect(instance).to.have.property('expiresAt');
// expect(instance.expiresAt).to.be(expectedValueLiteral);
});
it('should have the property createdAt (base name: "created_at")', function() {
// TODO: update the code to test the property createdAt
expect(instance).to.have.property('createdAt');
// expect(instance.createdAt).to.be(expectedValueLiteral);
});
});
});
}));