Skip to content

Commit

Permalink
Update packages/renderer/src/stores/colors.spec.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Denis Golovin <dgolovin@users.noreply.github.com>
Signed-off-by: Florent BENOIT <fbenoit@redhat.com>
  • Loading branch information
benoitf and dgolovin committed Feb 14, 2024
1 parent c6b9230 commit 7a243ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/renderer/src/stores/colors.spec.ts
Expand Up @@ -74,9 +74,7 @@ test('grab colors', async () => {
await callback();

// wait listColors is called
while (!listColorsMock.mock.calls.length) {
await new Promise(resolve => setTimeout(resolve, 100));
}
await vi.waitUntil(() => listColorsMock.mock.calls.length);

// now get list
const colors = get(colorsInfos);
Expand Down

0 comments on commit 7a243ba

Please sign in to comment.