mirror of https://github.com/vernonkeenan/lib
228 lines
8.2 KiB
JavaScript
228 lines
8.2 KiB
JavaScript
|
/**
|
||
|
* crm
|
||
|
* Customer Information Microservice
|
||
|
*
|
||
|
* The version of the OpenAPI document: 0.0.2
|
||
|
* Contact: noc@taxnexus.net
|
||
|
*
|
||
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||
|
* https://openapi-generator.tech
|
||
|
* Do not edit the class manually.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
(function(root, factory) {
|
||
|
if (typeof define === 'function' && define.amd) {
|
||
|
// AMD.
|
||
|
define(['expect.js', process.cwd()+'/src/index'], factory);
|
||
|
} else if (typeof module === 'object' && module.exports) {
|
||
|
// CommonJS-like environments that support module.exports, like Node.
|
||
|
factory(require('expect.js'), require(process.cwd()+'/src/index'));
|
||
|
} else {
|
||
|
// Browser globals (root is window)
|
||
|
factory(root.expect, root.Crm);
|
||
|
}
|
||
|
}(this, function(expect, Crm) {
|
||
|
'use strict';
|
||
|
|
||
|
var instance;
|
||
|
|
||
|
beforeEach(function() {
|
||
|
instance = new Crm.Lead();
|
||
|
});
|
||
|
|
||
|
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('Lead', function() {
|
||
|
it('should create an instance of Lead', function() {
|
||
|
// uncomment below and update the code to test Lead
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be.a(Crm.Lead);
|
||
|
});
|
||
|
|
||
|
it('should have the property address (base name: "Address")', function() {
|
||
|
// uncomment below and update the code to test the property address
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property company (base name: "Company")', function() {
|
||
|
// uncomment below and update the code to test the property company
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property createdByID (base name: "CreatedByID")', function() {
|
||
|
// uncomment below and update the code to test the property createdByID
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property createdDate (base name: "CreatedDate")', function() {
|
||
|
// uncomment below and update the code to test the property createdDate
|
||
|
//var instance = new Crm.Lead();
|
||
|
//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 instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property email (base name: "Email")', function() {
|
||
|
// uncomment below and update the code to test the property email
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property firstName (base name: "FirstName")', function() {
|
||
|
// uncomment below and update the code to test the property firstName
|
||
|
//var instance = new Crm.Lead();
|
||
|
//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 instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property lastModifiedByID (base name: "LastModifiedByID")', function() {
|
||
|
// uncomment below and update the code to test the property lastModifiedByID
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property lastModifiedDate (base name: "LastModifiedDate")', function() {
|
||
|
// uncomment below and update the code to test the property lastModifiedDate
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property lastName (base name: "LastName")', function() {
|
||
|
// uncomment below and update the code to test the property lastName
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property mobilePhone (base name: "MobilePhone")', function() {
|
||
|
// uncomment below and update the code to test the property mobilePhone
|
||
|
//var instance = new Crm.Lead();
|
||
|
//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 instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property ownerId (base name: "OwnerId")', function() {
|
||
|
// uncomment below and update the code to test the property ownerId
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property partnerAccountId (base name: "PartnerAccountId")', function() {
|
||
|
// uncomment below and update the code to test the property partnerAccountId
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property phone (base name: "Phone")', function() {
|
||
|
// uncomment below and update the code to test the property phone
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property productID (base name: "ProductID")', function() {
|
||
|
// uncomment below and update the code to test the property productID
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property refererURL (base name: "RefererURL")', function() {
|
||
|
// uncomment below and update the code to test the property refererURL
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property status (base name: "Status")', function() {
|
||
|
// uncomment below and update the code to test the property status
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property tenantID (base name: "TenantID")', function() {
|
||
|
// uncomment below and update the code to test the property tenantID
|
||
|
//var instance = new Crm.Lead();
|
||
|
//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 instance = new Crm.Lead();
|
||
|
//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 instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property uTMCampaign (base name: "UTMCampaign")', function() {
|
||
|
// uncomment below and update the code to test the property uTMCampaign
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property uTMContent (base name: "UTMContent")', function() {
|
||
|
// uncomment below and update the code to test the property uTMContent
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property uTMMedium (base name: "UTMMedium")', function() {
|
||
|
// uncomment below and update the code to test the property uTMMedium
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property uTMSource (base name: "UTMSource")', function() {
|
||
|
// uncomment below and update the code to test the property uTMSource
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property uTMTerm (base name: "UTMTerm")', function() {
|
||
|
// uncomment below and update the code to test the property uTMTerm
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
it('should have the property website (base name: "Website")', function() {
|
||
|
// uncomment below and update the code to test the property website
|
||
|
//var instance = new Crm.Lead();
|
||
|
//expect(instance).to.be();
|
||
|
});
|
||
|
|
||
|
});
|
||
|
|
||
|
}));
|