From dffbd1e7d54e7366491bd909ef53f58914646016 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 27 Dec 2020 17:36:29 +0100 Subject: [PATCH] fixing backend test --- test/backend/unit/model/threading/DiskMangerWorker.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/backend/unit/model/threading/DiskMangerWorker.spec.ts b/test/backend/unit/model/threading/DiskMangerWorker.spec.ts index fa060a7c..a6b66e65 100644 --- a/test/backend/unit/model/threading/DiskMangerWorker.spec.ts +++ b/test/backend/unit/model/threading/DiskMangerWorker.spec.ts @@ -11,7 +11,8 @@ describe('DiskMangerWorker', () => { Config.Server.Media.folder = path.join(__dirname, '/../../../assets'); ProjectPath.ImageFolder = path.join(__dirname, '/../../../assets'); const dir = await DiskMangerWorker.scanDirectory('/'); - expect(dir.media.length).to.be.equals(6); + // should match the number of media (photo/video) files in the assets folder + expect(dir.media.length).to.be.equals(7); const expected = require(path.join(__dirname, '/../../../assets/test image öüóőúéáű-.,.json')); expect(Utils.clone(dir.media[2].name)).to.be.deep.equal('test image öüóőúéáű-.,.jpg'); expect(Utils.clone(dir.media[2].metadata)).to.be.deep.equal(expected);