Skip to content

Commit

Permalink
fix: fixed test needing to await async loading of settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed May 11, 2024
1 parent b99efb4 commit 98dee43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/store/views.test.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});

Expand Down

0 comments on commit 98dee43

Please sign in to comment.