From 02f7fa44abf395722eeef44ac9613a1c9c2f671a Mon Sep 17 00:00:00 2001 From: Daniel Nagy <1622446+daniel-nagy@users.noreply.github.com> Date: Sun, 31 Dec 2023 16:18:42 -0600 Subject: [PATCH] maybe fix test --- packages/browser/src/BroadcastSubject.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/browser/src/BroadcastSubject.test.ts b/packages/browser/src/BroadcastSubject.test.ts index 7b3200d..356817e 100644 --- a/packages/browser/src/BroadcastSubject.test.ts +++ b/packages/browser/src/BroadcastSubject.test.ts @@ -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 */ ` @@ -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);