diff --git a/test/type.journey.test.js b/test/type.journey.test.js index 95e4b39b2..3eafc1663 100644 --- a/test/type.journey.test.js +++ b/test/type.journey.test.js @@ -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', @@ -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',