From 6203e16b284c549c89ab377dcfd9dd7e587475b7 Mon Sep 17 00:00:00 2001 From: Romain Date: Sat, 2 Dec 2023 15:10:07 +0000 Subject: [PATCH] test: additional assertions for the cleanup behaviour --- test/integration/integration-scan-modes.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/integration/integration-scan-modes.js b/test/integration/integration-scan-modes.js index bd59f4a..cdde815 100644 --- a/test/integration/integration-scan-modes.js +++ b/test/integration/integration-scan-modes.js @@ -32,7 +32,11 @@ describe('Integration: scan modes', function () { const london2 = integration.parseYaml('london.html') // the deleted file was removed should(london2.files).have.length(1) - integration.assertNotExist(['media/thumbs/london/IMG_0002.jpg']) + integration.assertNotExist([ + 'media/thumbs/london/IMG_0002.jpg', + 'media/small/london/IMG_0002.jpg', + 'media/large/london/IMG_0002.jpg' + ]) done() }) }) @@ -50,7 +54,11 @@ describe('Integration: scan modes', function () { // the London album is no longer there should(index2.albums).have.length(1) should(index2.albums[0].title).eql('newyork') - integration.assertNotExist(['media/thumbs/london/IMG_0001.jpg']) + integration.assertNotExist([ + 'media/thumbs/london/IMG_0001.jpg', + 'media/small/london/IMG_0001.jpg', + 'media/large/london/IMG_0001.jpg' + ]) done() }) })