UNPKG

upstox-js-sdk

Version:

The official Node Js client for communicating with the Upstox API

104 lines (93 loc) 3.25 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.66 * * 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.OrderApiV3(); }); describe('(package)', function() { describe('OrderApiV3', function() { describe('cancelOrder', function() { it('should call cancelOrder successfully', function(done) { // TODO: uncomment, update parameter values for cancelOrder call and complete the assertions /* var opts = {}; instance.cancelOrder(orderId, opts, function(error, data, response) { if (error) { done(error); return; } // TODO: update response assertions expect(data).to.be.a(UpstoxClient.CancelOrderV3Response); done(); }); */ // TODO: uncomment and complete method invocation above, then delete this line and the next: done(); }); }); describe('modifyOrder', function() { it('should call modifyOrder successfully', function(done) { // TODO: uncomment, update parameter values for modifyOrder call and complete the assertions /* var opts = {}; instance.modifyOrder(body, opts, function(error, data, response) { if (error) { done(error); return; } // TODO: update response assertions expect(data).to.be.a(UpstoxClient.ModifyOrderV3Response); done(); }); */ // TODO: uncomment and complete method invocation above, then delete this line and the next: done(); }); }); describe('placeOrder', function() { it('should call placeOrder successfully', function(done) { // TODO: uncomment, update parameter values for placeOrder call and complete the assertions /* var opts = {}; instance.placeOrder(body, opts, function(error, data, response) { if (error) { done(error); return; } // TODO: update response assertions expect(data).to.be.a(UpstoxClient.PlaceOrderV3Response); done(); }); */ // TODO: uncomment and complete method invocation above, then delete this line and the next: done(); }); }); }); }); }));