@gitchrisqueen/tdameritrade-api-js-client
Version:
TD Ameritrade API integration for node.js
143 lines (121 loc) • 6.28 kB
JavaScript
/**
* TD Ameritrade API - OAuth2
* This is replication of the TD Ameritrade API.
*
* OpenAPI spec version: 0.1.4
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* 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.GitChrisQueen_TDA_JS);
}
}(this, function(expect, GitChrisQueen_TDA_JS) {
'use strict';
var instance;
beforeEach(function() {
instance = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
});
var getProperty = function(object, getter, property) {
// Use getter method if present; otherwise, get the property directly.
if (typeof object[getter] === 'function')
return object[getter]();
else
return object[property];
}
var setProperty = function(object, setter, property, value) {
// Use setter method if present; otherwise, set the property directly.
if (typeof object[setter] === 'function')
object[setter](value);
else
object[property] = value;
}
describe('UserPrincipalPreferences', function() {
it('should create an instance of UserPrincipalPreferences', function() {
// uncomment below and update the code to test UserPrincipalPreferences
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be.a(GitChrisQueen_TDA_JS.UserPrincipalPreferences);
});
it('should have the property expressTrading (base name: "expressTrading")', function() {
// uncomment below and update the code to test the property expressTrading
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property directOptionsRouting (base name: "directOptionsRouting")', function() {
// uncomment below and update the code to test the property directOptionsRouting
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property directEquityRouting (base name: "directEquityRouting")', function() {
// uncomment below and update the code to test the property directEquityRouting
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property defaultEquityOrderLegInstruction (base name: "defaultEquityOrderLegInstruction")', function() {
// uncomment below and update the code to test the property defaultEquityOrderLegInstruction
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property defaultEquityOrderType (base name: "defaultEquityOrderType")', function() {
// uncomment below and update the code to test the property defaultEquityOrderType
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property defaultEquityOrderPriceLinkType (base name: "defaultEquityOrderPriceLinkType")', function() {
// uncomment below and update the code to test the property defaultEquityOrderPriceLinkType
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property defaultEquityOrderDuration (base name: "defaultEquityOrderDuration")', function() {
// uncomment below and update the code to test the property defaultEquityOrderDuration
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property defaultEquityOrderMarketSession (base name: "defaultEquityOrderMarketSession")', function() {
// uncomment below and update the code to test the property defaultEquityOrderMarketSession
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property defaultEquityQuantity (base name: "defaultEquityQuantity")', function() {
// uncomment below and update the code to test the property defaultEquityQuantity
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property mutualFundTaxLotMethod (base name: "mutualFundTaxLotMethod")', function() {
// uncomment below and update the code to test the property mutualFundTaxLotMethod
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property optionTaxLotMethod (base name: "optionTaxLotMethod")', function() {
// uncomment below and update the code to test the property optionTaxLotMethod
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property equityTaxLotMethod (base name: "equityTaxLotMethod")', function() {
// uncomment below and update the code to test the property equityTaxLotMethod
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property defaultAdvancedToolLaunch (base name: "defaultAdvancedToolLaunch")', function() {
// uncomment below and update the code to test the property defaultAdvancedToolLaunch
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
it('should have the property authTokenTimeout (base name: "authTokenTimeout")', function() {
// uncomment below and update the code to test the property authTokenTimeout
//var instane = new GitChrisQueen_TDA_JS.UserPrincipalPreferences();
//expect(instance).to.be();
});
});
}));