Skip to content

Commit

Permalink
#1611: add journey test for deleting entire journey
Browse files Browse the repository at this point in the history
  • Loading branch information
JoernBerkefeld committed Aug 28, 2024
1 parent d2651f1 commit e2f2a7a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/type.journey.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ describe('type: journey', () => {
return;
});

it('Should delete the item with version', async () => {
it('Should delete the item with exact version', async () => {
// WHEN
const isDeleted = await handler.deleteByKey(
'testInstance/testBU',
Expand All @@ -387,7 +387,21 @@ describe('type: journey', () => {
return;
});

it('Should delete 2 items with version', async () => {
it('Should delete the item with all versions', async () => {
// WHEN
const isDeleted = await handler.deleteByKey(
'testInstance/testBU',
'journey',
'testExisting_journey_Quicksend/*'
);
// THEN
assert.equal(process.exitCode, 0, 'delete should not have thrown an error');

assert.equal(isDeleted, true, 'should have deleted the item');
return;
});

it('Should delete 2 items with exact version', async () => {
// WHEN
const isDeleted = await handler.deleteByKey('testInstance/testBU', 'journey', [
'testExisting_journey_Quicksend/1',
Expand Down

0 comments on commit e2f2a7a

Please sign in to comment.