infusionsoft-nodejs
Version:
A NodeJS SDK automatically generated from Infusionsoft API Swagger definitions.
132 lines (111 loc) • 4.82 kB
JavaScript
/**
* 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.Task();
});
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('Task', function() {
it('should create an instance of Task', function() {
// uncomment below and update the code to test Task
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be.a(InfusionsoftRestApi.Task);
});
it('should have the property completed (base name: "completed")', function() {
// uncomment below and update the code to test the property completed
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
it('should have the property completionDate (base name: "completion_date")', function() {
// uncomment below and update the code to test the property completionDate
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
it('should have the property contact (base name: "contact")', function() {
// uncomment below and update the code to test the property contact
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
it('should have the property creationDate (base name: "creation_date")', function() {
// uncomment below and update the code to test the property creationDate
//var instane = new InfusionsoftRestApi.Task();
//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.Task();
//expect(instance).to.be();
});
it('should have the property dueDate (base name: "due_date")', function() {
// uncomment below and update the code to test the property dueDate
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
it('should have the property modificationDate (base name: "modification_date")', function() {
// uncomment below and update the code to test the property modificationDate
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
it('should have the property priority (base name: "priority")', function() {
// uncomment below and update the code to test the property priority
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
it('should have the property title (base name: "title")', function() {
// uncomment below and update the code to test the property title
//var instane = new InfusionsoftRestApi.Task();
//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.Task();
//expect(instance).to.be();
});
it('should have the property url (base name: "url")', function() {
// uncomment below and update the code to test the property url
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
it('should have the property userId (base name: "user_id")', function() {
// uncomment below and update the code to test the property userId
//var instane = new InfusionsoftRestApi.Task();
//expect(instance).to.be();
});
});
}));