upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
82 lines (70 loc) • 2.97 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('Rule', function() {
beforeEach(function() {
instance = new UpstoxClient.Rule();
});
it('should create an instance of Rule', function() {
// TODO: update the code to test Rule
expect(instance).to.be.a(UpstoxClient.Rule);
});
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 status (base name: "status")', function() {
// TODO: update the code to test the property status
expect(instance).to.have.property('status');
// expect(instance.status).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);
});
it('should have the property transactionType (base name: "transaction_type")', function() {
// TODO: update the code to test the property transactionType
expect(instance).to.have.property('transactionType');
// expect(instance.transactionType).to.be(expectedValueLiteral);
});
it('should have the property orderId (base name: "order_id")', function() {
// TODO: update the code to test the property orderId
expect(instance).to.have.property('orderId');
// expect(instance.orderId).to.be(expectedValueLiteral);
});
});
});
}));