UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

82 lines (73 loc) 2.6 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; beforeEach(function() { instance = new UpstoxClient.OptionsApi(); }); describe('(package)', function() { describe('OptionsApi', function() { describe('getOptionContracts', function() { it('should call getOptionContracts successfully', function(done) { // TODO: uncomment, update parameter values for getOptionContracts call and complete the assertions /* var opts = {}; instance.getOptionContracts(instrumentKey, opts, function(error, data, response) { if (error) { done(error); return; } // TODO: update response assertions expect(data).to.be.a(UpstoxClient.GetOptionContractResponse); done(); }); */ // TODO: uncomment and complete method invocation above, then delete this line and the next: done(); }); }); describe('getPutCallOptionChain', function() { it('should call getPutCallOptionChain successfully', function(done) { // TODO: uncomment, update parameter values for getPutCallOptionChain call and complete the assertions /* instance.getPutCallOptionChain(instrumentKey, expiryDate, function(error, data, response) { if (error) { done(error); return; } // TODO: update response assertions expect(data).to.be.a(UpstoxClient.GetOptionChainResponse); done(); }); */ // TODO: uncomment and complete method invocation above, then delete this line and the next: done(); }); }); }); }); }));