UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
82 lines (68 loc) 2.5 kB
/* * 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 * * Swagger Codegen version: 2.4.14 * * 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; describe('(package)', function() { describe('AssetType', function() { beforeEach(function() { instance = GitChrisQueen_TDA_JS.AssetType; }); it('should create an instance of AssetType', function() { // TODO: update the code to test AssetType expect(instance).to.be.a('object'); }); it('should have the property EQUITY', function() { expect(instance).to.have.property('EQUITY'); expect(instance.EQUITY).to.be("EQUITY"); }); it('should have the property OPTION', function() { expect(instance).to.have.property('OPTION'); expect(instance.OPTION).to.be("OPTION"); }); it('should have the property INDEX', function() { expect(instance).to.have.property('INDEX'); expect(instance.INDEX).to.be("INDEX"); }); it('should have the property MUTUAL_FUND', function() { expect(instance).to.have.property('MUTUAL_FUND'); expect(instance.MUTUAL_FUND).to.be("MUTUAL_FUND"); }); it('should have the property CASH_EQUIVALENT', function() { expect(instance).to.have.property('CASH_EQUIVALENT'); expect(instance.CASH_EQUIVALENT).to.be("CASH_EQUIVALENT"); }); it('should have the property FIXED_INCOME', function() { expect(instance).to.have.property('FIXED_INCOME'); expect(instance.FIXED_INCOME).to.be("FIXED_INCOME"); }); it('should have the property CURRENCY', function() { expect(instance).to.have.property('CURRENCY'); expect(instance.CURRENCY).to.be("CURRENCY"); }); }); }); }));