UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

81 lines (66 loc) 2.64 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.79 * * 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('MutualFundHoldingData', function() { beforeEach(function() { instance = new UpstoxClient.MutualFundHoldingData(); }); it('should create an instance of MutualFundHoldingData', function() { expect(instance).to.be.a(UpstoxClient.MutualFundHoldingData); }); it('should have the property folio (base name: "folio")', function() { expect(instance).to.have.property('folio'); }); it('should have the property fund (base name: "fund")', function() { expect(instance).to.have.property('fund'); }); it('should have the property pnl (base name: "pnl")', function() { expect(instance).to.have.property('pnl'); }); it('should have the property quantity (base name: "quantity")', function() { expect(instance).to.have.property('quantity'); }); it('should have the property instrumentKey (base name: "instrument_key")', function() { expect(instance).to.have.property('instrumentKey'); }); it('should have the property averagePrice (base name: "average_price")', function() { expect(instance).to.have.property('averagePrice'); }); it('should have the property lastPrice (base name: "last_price")', function() { expect(instance).to.have.property('lastPrice'); }); it('should have the property lastPriceDate (base name: "last_price_date")', function() { expect(instance).to.have.property('lastPriceDate'); }); it('should have the property pledgedQuantity (base name: "pledged_quantity")', function() { expect(instance).to.have.property('pledgedQuantity'); }); }); }); }));