diff --git a/test/integration/api/AssetApi.spec.js b/test/integration/api/AssetApi.spec.js index 6da584f..922050e 100644 --- a/test/integration/api/AssetApi.spec.js +++ b/test/integration/api/AssetApi.spec.js @@ -1,16 +1,7 @@ const ApiSutFactory = require('./ApiSutFactory'); (function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../../src'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../../src')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SalesforceMarketingCloud); - } + factory(require('expect.js'), require('../../../src')); }(this, function(expect, SalesforceMarketingCloud) { 'use strict'; diff --git a/test/integration/api/CampaignApi.spec.js b/test/integration/api/CampaignApi.spec.js index 1095522..2a24ddb 100644 --- a/test/integration/api/CampaignApi.spec.js +++ b/test/integration/api/CampaignApi.spec.js @@ -1,16 +1,7 @@ const ApiSutFactory = require('./ApiSutFactory'); (function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../../src'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../../src')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SalesforceMarketingCloud); - } + factory(require('expect.js'), require('../../../src')); }(this, function(expect, SalesforceMarketingCloud) { 'use strict'; diff --git a/test/integration/api/TransactionalMessagingApi.spec.js b/test/integration/api/TransactionalMessagingApi.spec.js index 22ba05b..6292415 100644 --- a/test/integration/api/TransactionalMessagingApi.spec.js +++ b/test/integration/api/TransactionalMessagingApi.spec.js @@ -2,16 +2,7 @@ const ApiSutFactory = require('./ApiSutFactory'); const EnvironmentConfigProvider = require('../../../src/EnvironmentConfigProvider'); (function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', '../../../src'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require('../../../src')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SalesforceMarketingCloud); - } + factory(require('expect.js'), require('../../../src')); }(this, function(expect, SalesforceMarketingCloud) { 'use strict';