upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
64 lines (55 loc) • 2.13 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('GttRule', function() {
beforeEach(function() {
instance = new UpstoxClient.GttRule();
});
it('should create an instance of GttRule', function() {
// TODO: update the code to test GttRule
expect(instance).to.be.a(UpstoxClient.GttRule);
});
it('should have the property strategy (base name: "strategy")', function() {
// TODO: update the code to test the property strategy
expect(instance).to.have.property('strategy');
// expect(instance.strategy).to.be(expectedValueLiteral);
});
it('should have the property triggerType (base name: "trigger_type")', function() {
// TODO: update the code to test the property triggerType
expect(instance).to.have.property('triggerType');
// expect(instance.triggerType).to.be(expectedValueLiteral);
});
it('should have the property triggerPrice (base name: "trigger_price")', function() {
// TODO: update the code to test the property triggerPrice
expect(instance).to.have.property('triggerPrice');
// expect(instance.triggerPrice).to.be(expectedValueLiteral);
});
});
});
}));