Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
Test code cleanup (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfcbetiuc authored and sfdrogojan committed Nov 14, 2019
1 parent 96349cb commit 37ea781
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 30 deletions.
11 changes: 1 addition & 10 deletions test/integration/api/AssetApi.spec.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
11 changes: 1 addition & 10 deletions test/integration/api/CampaignApi.spec.js
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
11 changes: 1 addition & 10 deletions test/integration/api/TransactionalMessagingApi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 37ea781

Please sign in to comment.