From 5028bb6c60f049c64e6f230447e69b849be7a090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 10 Sep 2021 12:07:04 +0200 Subject: [PATCH] fix: failing test --- src/lib/server-impl.test.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/server-impl.test.js b/src/lib/server-impl.test.js index 2c4f70938c..a6157fb85a 100644 --- a/src/lib/server-impl.test.js +++ b/src/lib/server-impl.test.js @@ -48,13 +48,9 @@ jest.mock('./db', () => ({ }, })); -jest.mock( - '../migrator', - () => - function () { - return Promise.resolve(); - }, -); +jest.mock('../migrator', () => ({ + migrateDb: () => Promise.resolve(), +})); jest.mock( './util/version',