From 98dee435258b0c9164e11359b1feddcd8cd14507 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Sat, 11 May 2024 13:45:37 +0200 Subject: [PATCH] fix: fixed test needing to await async loading of settings --- test/unit/store/views.test.node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/store/views.test.node.ts b/test/unit/store/views.test.node.ts index e34dd5b5..9a1453d7 100644 --- a/test/unit/store/views.test.node.ts +++ b/test/unit/store/views.test.node.ts @@ -9,9 +9,9 @@ describe('views store', () => { viewsStore.clearViews(); }); - test('load default views', () => { + test('load default views', async () => { expect(viewsStore.views).toHaveLength(0); - viewsStore.load(); + await viewsStore.load(); expect(viewsStore.views).not.toHaveLength(0); });