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 9f82b41 commit 0199f47
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

1 comment on commit 0199f47

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here are screenshots of this commit:

Screenshots using aw-server v0.12.3b11 (click to expand)

Screenshots using aw-server-rust master (click to expand)

Screenshots using aw-server-rust v0.12.3b11 (click to expand)

Please sign in to comment.