UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

88 lines (75 loc) 3.37 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('Margin', function() { beforeEach(function() { instance = new UpstoxClient.Margin(); }); it('should create an instance of Margin', function() { // TODO: update the code to test Margin expect(instance).to.be.a(UpstoxClient.Margin); }); it('should have the property spanMargin (base name: "span_margin")', function() { // TODO: update the code to test the property spanMargin expect(instance).to.have.property('spanMargin'); // expect(instance.spanMargin).to.be(expectedValueLiteral); }); it('should have the property exposureMargin (base name: "exposure_margin")', function() { // TODO: update the code to test the property exposureMargin expect(instance).to.have.property('exposureMargin'); // expect(instance.exposureMargin).to.be(expectedValueLiteral); }); it('should have the property equityMargin (base name: "equity_margin")', function() { // TODO: update the code to test the property equityMargin expect(instance).to.have.property('equityMargin'); // expect(instance.equityMargin).to.be(expectedValueLiteral); }); it('should have the property netBuyPremium (base name: "net_buy_premium")', function() { // TODO: update the code to test the property netBuyPremium expect(instance).to.have.property('netBuyPremium'); // expect(instance.netBuyPremium).to.be(expectedValueLiteral); }); it('should have the property additionalMargin (base name: "additional_margin")', function() { // TODO: update the code to test the property additionalMargin expect(instance).to.have.property('additionalMargin'); // expect(instance.additionalMargin).to.be(expectedValueLiteral); }); it('should have the property totalMargin (base name: "total_margin")', function() { // TODO: update the code to test the property totalMargin expect(instance).to.have.property('totalMargin'); // expect(instance.totalMargin).to.be(expectedValueLiteral); }); it('should have the property tenderMargin (base name: "tender_margin")', function() { // TODO: update the code to test the property tenderMargin expect(instance).to.have.property('tenderMargin'); // expect(instance.tenderMargin).to.be(expectedValueLiteral); }); }); }); }));