From e09741f4f90031a7a70331bc4b1c6e0c7fc3915e Mon Sep 17 00:00:00 2001 From: Murat Dogan Date: Sun, 24 Nov 2024 19:45:50 +0100 Subject: [PATCH] check dc2 initialized --- test/jest-tests/polyfill.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/jest-tests/polyfill.test.ts b/test/jest-tests/polyfill.test.ts index 345621d..41ab1a0 100644 --- a/test/jest-tests/polyfill.test.ts +++ b/test/jest-tests/polyfill.test.ts @@ -135,7 +135,10 @@ describe('polyfill', () => { // Assign the binaryType value dc1.binaryType = current.binaryType as BinaryType; - dc2.binaryType = current.binaryType as BinaryType; + // dc2 also is initialized ? + if(dc2){ + dc2.binaryType = current.binaryType as BinaryType; + } // Send the test message dc1.send(current.data);