upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
94 lines (80 loc) • 3.63 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.62
*
* 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('MultiOrderError', function() {
beforeEach(function() {
instance = new UpstoxClient.MultiOrderError();
});
it('should create an instance of MultiOrderError', function() {
// TODO: update the code to test MultiOrderError
expect(instance).to.be.a(UpstoxClient.MultiOrderError);
});
it('should have the property errorCode (base name: "errorCode")', function() {
// TODO: update the code to test the property errorCode
expect(instance).to.have.property('errorCode');
// expect(instance.errorCode).to.be(expectedValueLiteral);
});
it('should have the property message (base name: "message")', function() {
// TODO: update the code to test the property message
expect(instance).to.have.property('message');
// expect(instance.message).to.be(expectedValueLiteral);
});
it('should have the property propertyPath (base name: "propertyPath")', function() {
// TODO: update the code to test the property propertyPath
expect(instance).to.have.property('propertyPath');
// expect(instance.propertyPath).to.be(expectedValueLiteral);
});
it('should have the property invalidValue (base name: "invalidValue")', function() {
// TODO: update the code to test the property invalidValue
expect(instance).to.have.property('invalidValue');
// expect(instance.invalidValue).to.be(expectedValueLiteral);
});
it('should have the property errorCode (base name: "error_code")', function() {
// TODO: update the code to test the property errorCode
expect(instance).to.have.property('errorCode');
// expect(instance.errorCode).to.be(expectedValueLiteral);
});
it('should have the property propertyPath (base name: "property_path")', function() {
// TODO: update the code to test the property propertyPath
expect(instance).to.have.property('propertyPath');
// expect(instance.propertyPath).to.be(expectedValueLiteral);
});
it('should have the property invalidValue (base name: "invalid_value")', function() {
// TODO: update the code to test the property invalidValue
expect(instance).to.have.property('invalidValue');
// expect(instance.invalidValue).to.be(expectedValueLiteral);
});
it('should have the property correlationId (base name: "correlation_id")', function() {
// TODO: update the code to test the property correlationId
expect(instance).to.have.property('correlationId');
// expect(instance.correlationId).to.be(expectedValueLiteral);
});
});
});
}));