UNPKG

@gitchrisqueen/tdameritrade-api-js-client

Version:
67 lines (56 loc) 1.88 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('PeriodType', function() { beforeEach(function() { instance = GitChrisQueen_TDA_JS.PeriodType; }); it('should create an instance of PeriodType', function() { // TODO: update the code to test PeriodType expect(instance).to.be.a('object'); }); it('should have the property day', function() { expect(instance).to.have.property('day'); expect(instance.day).to.be("day"); }); it('should have the property month', function() { expect(instance).to.have.property('month'); expect(instance.month).to.be("month"); }); it('should have the property year', function() { expect(instance).to.have.property('year'); expect(instance.year).to.be("year"); }); it('should have the property ytd', function() { expect(instance).to.have.property('ytd'); expect(instance.ytd).to.be("ytd"); }); }); }); }));