Skip to content

Commit

Permalink
#1837: fix tests for new journey deletion logic
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Dec 13, 2024
1 parent 7cc71ec commit ff1635c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dsfdsafdsa-922c-4568-85a5-e5cc77efc3be
11 changes: 6 additions & 5 deletions test/type.journey.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ describe('type: journey', () => {
const isDeleted = await handler.deleteByKey(
'testInstance/testBU',
'journey',
'testExisting_journey_Quicksend'
'testExisting_journey_Multistep'
);
// THEN
assert.equal(process.exitCode, 1, 'delete should have thrown an error');
Expand All @@ -364,7 +364,7 @@ describe('type: journey', () => {
const isDeleted = await handler.deleteByKey(
'testInstance/testBU',
'journey',
'testExisting_journey_Quicksend/2'
'testExisting_journey_Multistep/2'
);
// THEN
assert.equal(process.exitCode, 1, 'delete should have thrown an error');
Expand All @@ -378,7 +378,7 @@ describe('type: journey', () => {
const isDeleted = await handler.deleteByKey(
'testInstance/testBU',
'journey',
'testExisting_journey_Quicksend/1'
'testExisting_journey_Multistep/1'
);
// THEN
assert.equal(process.exitCode, 0, 'delete should not have thrown an error');
Expand All @@ -392,7 +392,7 @@ describe('type: journey', () => {
const isDeleted = await handler.deleteByKey(
'testInstance/testBU',
'journey',
'testExisting_journey_Quicksend/*'
'testExisting_journey_Multistep/*'
);
// THEN
assert.equal(process.exitCode, 0, 'delete should not have thrown an error');
Expand All @@ -404,7 +404,8 @@ describe('type: journey', () => {
it('Should delete 2 items with exact version', async () => {
// WHEN
const isDeleted = await handler.deleteByKey('testInstance/testBU', 'journey', [
'testExisting_journey_Quicksend/1',
'testExisting_journey_Quicksend',
'testExisting_temail',
'testExisting_journey_Multistep/1',
]);
// THEN
Expand Down

0 comments on commit ff1635c

Please sign in to comment.