UNPKG

infusionsoft-nodejs

Version:

A NodeJS SDK automatically generated from Infusionsoft API Swagger definitions.

120 lines (101 loc) 4.3 kB
/** * Infusionsoft REST API * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: V1.0 * * * 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.InfusionsoftRestApi); } }(this, function(expect, InfusionsoftRestApi) { 'use strict'; var instance; beforeEach(function() { instance = new InfusionsoftRestApi.OrderItem(); }); 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('OrderItem', function() { it('should create an instance of OrderItem', function() { // uncomment below and update the code to test OrderItem //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be.a(InfusionsoftRestApi.OrderItem); }); it('should have the property cost (base name: "cost")', function() { // uncomment below and update the code to test the property cost //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property description (base name: "description")', function() { // uncomment below and update the code to test the property description //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property discount (base name: "discount")', function() { // uncomment below and update the code to test the property discount //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property id (base name: "id")', function() { // uncomment below and update the code to test the property id //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property notes (base name: "notes")', function() { // uncomment below and update the code to test the property notes //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property price (base name: "price")', function() { // uncomment below and update the code to test the property price //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property product (base name: "product")', function() { // uncomment below and update the code to test the property product //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property quantity (base name: "quantity")', function() { // uncomment below and update the code to test the property quantity //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); it('should have the property type (base name: "type")', function() { // uncomment below and update the code to test the property type //var instane = new InfusionsoftRestApi.OrderItem(); //expect(instance).to.be(); }); }); }));