Skip to content

Commit

Permalink
#1522: fix tests to use market-arrays for build/bt/bd
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Aug 28, 2024
1 parent 66091a1 commit acc06b9
Show file tree
Hide file tree
Showing 22 changed files with 75 additions and 75 deletions.
38 changes: 19 additions & 19 deletions test/general.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
// check automation
Expand Down Expand Up @@ -768,7 +768,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testTargetMarket'
['testTargetMarket']
);
assert.equal(
process.exitCode,
Expand Down Expand Up @@ -836,7 +836,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
// check automation
Expand Down Expand Up @@ -870,7 +870,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testTargetMarket'
['testTargetMarket']
);
assert.equal(
process.exitCode,
Expand Down Expand Up @@ -947,7 +947,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');

Expand Down Expand Up @@ -1001,7 +1001,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testTargetMarket'
['testTargetMarket']
);
assert.equal(
process.exitCode,
Expand Down Expand Up @@ -1069,7 +1069,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');

Expand Down Expand Up @@ -1123,7 +1123,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testTargetMarket'
['testTargetMarket']
);
assert.equal(
process.exitCode,
Expand Down Expand Up @@ -1197,7 +1197,7 @@ describe('GENERAL', () => {
buName,
typeKeyCombo,
undefined,
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
// check automation
Expand Down Expand Up @@ -1389,8 +1389,8 @@ describe('GENERAL', () => {
buName,
buName,
typeKeyCombo,
'testSourceMarket',
'testTargetMarket'
['testSourceMarket'],
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'build should not have thrown an error');

Expand Down Expand Up @@ -1483,8 +1483,8 @@ describe('GENERAL', () => {
buName,
buName,
typeKeyCombo,
'testSourceMarket',
'testTargetMarket'
['testSourceMarket'],
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'build should not have thrown an error');

Expand Down Expand Up @@ -1587,8 +1587,8 @@ describe('GENERAL', () => {
buName,
buName,
typeKeyCombo,
'testSourceMarket',
'testTargetMarket'
['testSourceMarket'],
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'build should not have thrown an error');

Expand Down Expand Up @@ -1697,8 +1697,8 @@ describe('GENERAL', () => {
buName,
'ignored',
typeKeyCombo,
'testSourceMarket',
'deployment-target',
['testSourceMarket'],
['deployment-target'],
true
);
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
Expand Down Expand Up @@ -1878,8 +1878,8 @@ describe('GENERAL', () => {
buName,
'ignored',
typeKeyCombo,
'testSourceMarket',
'deployment-target',
['testSourceMarket'],
['deployment-target'],
true
);
assert.equal(process.exitCode, 0, 'build should not have thrown an error');
Expand Down
6 changes: 3 additions & 3 deletions test/type.asset.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ describe('type: asset', () => {
'testInstance/testBU',
'asset',
['testExisting_asset_templatebasedemail', 'testExisting_asset_htmlblock'],
'testSourceMarket'
['testSourceMarket']
);
// WHEN
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
Expand Down Expand Up @@ -584,7 +584,7 @@ describe('type: asset', () => {
'testInstance/testBU',
'asset',
['testExisting_asset_templatebasedemail', 'testExisting_asset_htmlblock'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.equal(
Expand Down Expand Up @@ -673,7 +673,7 @@ describe('type: asset', () => {
'testInstance/testBU',
'asset',
['testExisting_asset_templatebasedemail'],
'testSourceMarket'
['testSourceMarket']
);
// WHEN
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
Expand Down
8 changes: 4 additions & 4 deletions test/type.automation.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ describe('type: automation', () => {
'testInstance/testBU',
'automation',
['testExisting_automation'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand All @@ -629,7 +629,7 @@ describe('type: automation', () => {
'testInstance/testBU',
'automation',
['testExisting_automation'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
// WHEN
Expand All @@ -648,7 +648,7 @@ describe('type: automation', () => {
'testInstance/testBU',
'automation',
['testExisting_automation'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');

Expand Down Expand Up @@ -684,7 +684,7 @@ describe('type: automation', () => {
'testInstance/testBU',
'automation',
['testExisting_automation'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
// WHEN
Expand Down
6 changes: 3 additions & 3 deletions test/type.dataExtension.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ describe('type: dataExtension', () => {
'testInstance/testBU',
'dataExtension',
['testExisting_dataExtension'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand All @@ -294,7 +294,7 @@ describe('type: dataExtension', () => {
'testInstance/testBU',
'dataExtension',
['testExisting_dataExtension'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
// WHEN
Expand All @@ -316,7 +316,7 @@ describe('type: dataExtension', () => {
'testInstance/testBU',
'dataExtension',
['testExisting_dataExtension'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');

Expand Down
6 changes: 3 additions & 3 deletions test/type.dataExtract.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ describe('type: dataExtract', () => {
'testInstance/testBU',
'dataExtract',
['testExisting_dataExtract'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand All @@ -134,7 +134,7 @@ describe('type: dataExtract', () => {
'testInstance/testBU',
'dataExtract',
['testExisting_dataExtract'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
assert.equal(
Expand All @@ -152,7 +152,7 @@ describe('type: dataExtract', () => {
'testInstance/testBU',
'dataExtract',
['testExisting_dataExtract'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand Down
4 changes: 2 additions & 2 deletions test/type.emailSend.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ describe('type: emailSend', () => {
'testInstance/testBU',
'emailSend',
['testExisting_emailSend'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
assert.equal(
Expand All @@ -110,7 +110,7 @@ describe('type: emailSend', () => {
'testInstance/testBU',
'emailSend',
['testExisting_emailSend'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand Down
6 changes: 3 additions & 3 deletions test/type.event.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ describe('type: event', () => {
'testInstance/testBU',
'event',
['testExisting_event'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');

Expand All @@ -285,7 +285,7 @@ describe('type: event', () => {
'testInstance/testBU',
'event',
['testExisting_event'],
'testSourceMarket'
['testSourceMarket']
);
// WHEN
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
Expand All @@ -305,7 +305,7 @@ describe('type: event', () => {
'testInstance/testBU',
'event',
['testExisting_event'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');

Expand Down
6 changes: 3 additions & 3 deletions test/type.fileTransfer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('type: fileTransfer', () => {
'testInstance/testBU',
'fileTransfer',
['testExisting_fileTransfer'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand All @@ -131,7 +131,7 @@ describe('type: fileTransfer', () => {
'testInstance/testBU',
'fileTransfer',
['testExisting_fileTransfer'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
assert.equal(
Expand All @@ -149,7 +149,7 @@ describe('type: fileTransfer', () => {
'testInstance/testBU',
'fileTransfer',
['testExisting_fileTransfer'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand Down
6 changes: 3 additions & 3 deletions test/type.importFile.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('type: importFile', () => {
'testInstance/testBU',
'importFile',
['testExisting_importFile'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand All @@ -171,7 +171,7 @@ describe('type: importFile', () => {
'testInstance/testBU',
'importFile',
['testExisting_importFile'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
assert.equal(
Expand All @@ -189,7 +189,7 @@ describe('type: importFile', () => {
'testInstance/testBU',
'importFile',
['testExisting_importFile'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand Down
6 changes: 3 additions & 3 deletions test/type.journey.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ describe('type: journey', () => {
'testInstance/testBU',
'journey',
['testExisting_journey_Quicksend'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
assert.equal(
Expand All @@ -247,7 +247,7 @@ describe('type: journey', () => {
'testInstance/testBU',
'journey',
['testExisting_journey_Quicksend'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand Down Expand Up @@ -275,7 +275,7 @@ describe('type: journey', () => {
'testInstance/testBU',
'journey',
['testExisting_journey_Quicksend', 'testExisting_journey_Multistep'],
'testSourceMarket'
['testSourceMarket']
);
// WHEN
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
Expand Down
4 changes: 2 additions & 2 deletions test/type.mobileKeyword.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ describe('type: mobileKeyword', () => {
'testInstance/testBU',
'mobileKeyword',
['4912312345678.TESTEXISTING_KEYWORD'],
'testSourceMarket'
['testSourceMarket']
);
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');

Expand Down Expand Up @@ -207,7 +207,7 @@ describe('type: mobileKeyword', () => {
'testInstance/testBU',
'mobileKeyword',
['4912312345678.TESTEXISTING_KEYWORD'],
'testTargetMarket'
['testTargetMarket']
);
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
assert.deepEqual(
Expand Down
Loading

0 comments on commit acc06b9

Please sign in to comment.