Skip to content

Commit

Permalink
maybe fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-nagy committed Dec 31, 2023
1 parent 7c0cc40 commit 02f7fa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/browser/src/BroadcastSubject.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ test("using a broadcast subject to synchronize state between two same-origin bro
const next = spy();

darkMode.subscribe(next);
const change = firstValueFrom(darkMode);

await Test.createIframe(
/* html */ `
Expand All @@ -23,7 +24,7 @@ test("using a broadcast subject to synchronize state between two same-origin bro
{ crossOrigin: false }
);

await firstValueFrom(darkMode);
await change;

assert.calledOnce(next);
assert.calledWith(next, true);
Expand Down

0 comments on commit 02f7fa4

Please sign in to comment.