Skip to content

Commit e2f7b1a

Browse files
fix: add missing Text{De,En}coder globals
1 parent 7fb8df5 commit e2f7b1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bundle/sipgate-io.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
/* eslint-disable @typescript-eslint/no-var-requires */
22
const fs = require('fs');
3+
const { TextDecoder, TextEncoder } = require('util');
4+
5+
global.TextEncoder = TextEncoder;
6+
global.TextDecoder = TextDecoder;
37

48
describe('sipgate-io module', () => {
59
let dom;

0 commit comments

Comments
 (0)