Skip to content

Commit

Permalink
#2013: adapt tests to now sorted return values
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Jan 28, 2025
1 parent 7aa3277 commit 2c33581
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions test/type.asset.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -685,11 +685,11 @@ describe('type: asset', () => {
assert.deepEqual(
templatedItems.asset.map((item) => item.customerKey),
[
'{{{prefix}}}asset_templatebasedemail',
'{{{prefix}}}asset_template',
'{{{prefix}}}asset_htmlblock',
'{{{prefix}}}htmlblock1',
'{{{prefix}}}asset_template',
'{{{prefix}}}asset_templatebasedemail',
'{{{prefix}}}htmlblock 3 spaces',
'{{{prefix}}}htmlblock1',
'{{{prefix}}}htmlblock2',
],
'expected specific assets to be templated'
Expand Down
8 changes: 4 additions & 4 deletions test/type.journey.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ describe('type: journey', () => {
// journey
assert.deepEqual(
templatedItems.journey.map((item) => item.key),
['{{{prefix}}}journey_Quicksend', '{{{prefix}}}journey_Multistep'],
['{{{prefix}}}journey_Multistep', '{{{prefix}}}journey_Quicksend'],
'expected specific journeys to be templated'
);
// event
Expand All @@ -434,9 +434,9 @@ describe('type: journey', () => {
assert.deepEqual(
templatedItems.dataExtension.map((item) => item.CustomerKey),
[
'{{{prefix}}}journey_Quicksend',
'{{{prefix}}}journey_Multistep',
'{{{prefix}}}DomainExclusion',
'{{{prefix}}}journey_Multistep',
'{{{prefix}}}journey_Quicksend',
],
'expected specific dataExtensions to be templated'
);
Expand All @@ -457,8 +457,8 @@ describe('type: journey', () => {
templatedItems.asset.map((item) => item.customerKey),
[
'{{{prefix}}}asset_htmlblock',
'{{{prefix}}}htmlblock1',
'{{{prefix}}}htmlblock 3 spaces',
'{{{prefix}}}htmlblock1',
'{{{prefix}}}htmlblock2',
],
'expected specific assets to be templated'
Expand Down
2 changes: 1 addition & 1 deletion test/type.script.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,9 +402,9 @@ describe('type: script', () => {
assert.deepEqual(
templatedItems.asset.map((item) => item.customerKey),
[
'{{{prefix}}}htmlblock1',
'{{{prefix}}}asset_htmlblock',
'{{{prefix}}}htmlblock 3 spaces',
'{{{prefix}}}htmlblock1',
'{{{prefix}}}htmlblock2',
],
'expected specific assets to be templated'
Expand Down
2 changes: 1 addition & 1 deletion test/type.triggeredSend.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ describe('type: triggeredSend', () => {
templatedItems.asset.map((item) => item.customerKey),
[
'{{{prefix}}}asset_htmlblock',
'{{{prefix}}}htmlblock1',
'{{{prefix}}}htmlblock 3 spaces',
'{{{prefix}}}htmlblock1',
'{{{prefix}}}htmlblock2',
],
'expected specific assets to be templated'
Expand Down

0 comments on commit 2c33581

Please sign in to comment.