UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

76 lines (65 loc) 2.7 kB
/* * 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('Instrument', function() { beforeEach(function() { instance = new UpstoxClient.Instrument(); }); it('should create an instance of Instrument', function() { // TODO: update the code to test Instrument expect(instance).to.be.a(UpstoxClient.Instrument); }); it('should have the property instrumentKey (base name: "instrument_key")', function() { // TODO: update the code to test the property instrumentKey expect(instance).to.have.property('instrumentKey'); // expect(instance.instrumentKey).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 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 price (base name: "price")', function() { // TODO: update the code to test the property price expect(instance).to.have.property('price'); // expect(instance.price).to.be(expectedValueLiteral); }); }); }); }));