Skip to content

Commit

Permalink
check dc2 initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
murat-dogan committed Nov 24, 2024
1 parent 34af584 commit e09741f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/jest-tests/polyfill.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e09741f

Please sign in to comment.