From ad645feb43dc27f17f486e17f51b942c858f2a0c Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 9 Dec 2018 12:01:40 +0100 Subject: [PATCH] fixing test --- test/backend/integration/model/sql/typeorm.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/backend/integration/model/sql/typeorm.ts b/test/backend/integration/model/sql/typeorm.ts index f3cc6279..c2570391 100644 --- a/test/backend/integration/model/sql/typeorm.ts +++ b/test/backend/integration/model/sql/typeorm.ts @@ -54,9 +54,9 @@ describe('Typeorm integration', () => { }); - const getDir = () => { + const getDir = (namePrefix: string = '') => { const d = new DirectoryEntity(); - d.name = 'test dir'; + d.name = namePrefix + 'test dir'; d.path = '.'; d.lastModified = Date.now(); d.lastScanned = null; @@ -196,7 +196,7 @@ describe('Typeorm integration', () => { it('should open and close connection twice with media added ', async () => { let conn = await SQLConnection.getConnection(); const dir = await conn.getRepository(DirectoryEntity).save(getDir()); - const dir2 = getDir(); + const dir2 = getDir('dir2'); dir2.parent = dir; await conn.getRepository(DirectoryEntity).save(dir2); const photo = getPhoto();