upstox-js-sdk
Version:
The official Node Js client for communicating with the Upstox API
76 lines (65 loc) • 2.74 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.54
*
* 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('HolidayData', function() {
beforeEach(function() {
instance = new UpstoxClient.HolidayData();
});
it('should create an instance of HolidayData', function() {
// TODO: update the code to test HolidayData
expect(instance).to.be.a(UpstoxClient.HolidayData);
});
it('should have the property _date (base name: "date")', function() {
// TODO: update the code to test the property _date
expect(instance).to.have.property('_date');
// expect(instance._date).to.be(expectedValueLiteral);
});
it('should have the property description (base name: "description")', function() {
// TODO: update the code to test the property description
expect(instance).to.have.property('description');
// expect(instance.description).to.be(expectedValueLiteral);
});
it('should have the property holidayType (base name: "holiday_type")', function() {
// TODO: update the code to test the property holidayType
expect(instance).to.have.property('holidayType');
// expect(instance.holidayType).to.be(expectedValueLiteral);
});
it('should have the property closedExchanges (base name: "closed_exchanges")', function() {
// TODO: update the code to test the property closedExchanges
expect(instance).to.have.property('closedExchanges');
// expect(instance.closedExchanges).to.be(expectedValueLiteral);
});
it('should have the property openExchanges (base name: "open_exchanges")', function() {
// TODO: update the code to test the property openExchanges
expect(instance).to.have.property('openExchanges');
// expect(instance.openExchanges).to.be(expectedValueLiteral);
});
});
});
}));