From 48e0beae8c403f975d1922008d1f91e992fa9b66 Mon Sep 17 00:00:00 2001 From: kwasniow Date: Wed, 12 Jun 2024 12:05:48 +0200 Subject: [PATCH] feat: correct check in tests --- src/connection-state-handler.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connection-state-handler.spec.ts b/src/connection-state-handler.spec.ts index b05fd85..748d81e 100644 --- a/src/connection-state-handler.spec.ts +++ b/src/connection-state-handler.spec.ts @@ -35,7 +35,7 @@ describe('ConnectionStateHandler', () => { expect.assertions(1); const connStateHandler = new ConnectionStateHandler(fakeCallback); - expect(connStateHandler.getConnectionState()).toBe('New'); + expect(connStateHandler.getConnectionState()).toStrictEqual(ConnectionState.New); }); it('updates ice connection state on ice connection state change and emits the event', () => {