Avoid use of Buffer as it does not exist in the Web natively #10435
Annotations
10 errors
Run tests:
spec/unit/matrixrtc/MatrixRTCSession.spec.ts#L1347
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,7 +1,6 @@
- Object {
- "data": Array [
+ Uint8Array [
116,
104,
105,
115,
32,
@@ -13,8 +12,6 @@
101,
32,
107,
101,
121,
- ],
- "type": "Buffer",
- }
+ ],
0,
"@bob:example.org:bobsphone",
Number of calls: 1
at Object.toHaveBeenCalledWith (spec/unit/matrixrtc/MatrixRTCSession.spec.ts:1347:54)
|
Run tests:
spec/unit/matrixrtc/MatrixRTCSession.spec.ts#L1379
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,7 +1,6 @@
- Object {
- "data": Array [
+ Uint8Array [
116,
104,
105,
115,
32,
@@ -13,8 +12,6 @@
101,
32,
107,
101,
121,
- ],
- "type": "Buffer",
- }
+ ],
4,
"@bob:example.org:bobsphone",
Number of calls: 1
at Object.toHaveBeenCalledWith (spec/unit/matrixrtc/MatrixRTCSession.spec.ts:1379:54)
|
Run tests:
spec/unit/matrixrtc/MatrixRTCSession.spec.ts#L1411
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
@@ -1,7 +1,6 @@
- Object {
- "data": Array [
+ Uint8Array [
116,
104,
105,
115,
32,
@@ -13,8 +12,6 @@
101,
32,
107,
101,
121,
- ],
- "type": "Buffer",
- }
+ ],
0,
"@bob:example.org:bobsphone",
Number of calls: 1
at Object.toHaveBeenCalledWith (spec/unit/matrixrtc/MatrixRTCSession.spec.ts:1411:54)
|
Run tests:
spec/unit/matrixrtc/MatrixRTCSession.spec.ts#L1491
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
- Object {
- "data": Array [
+ Uint8Array [
110,
101,
119,
101,
114,
32,
107,
101,
121,
- ],
- "type": "Buffer",
- }
+ ],
0,
"@bob:example.org:bobsphone",
Number of calls: 1
at Object.toHaveBeenCalledWith (spec/unit/matrixrtc/MatrixRTCSession.spec.ts:1491:54)
|
Run tests:
spec/unit/matrixrtc/MatrixRTCSession.spec.ts#L1539
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
- Object {
- "data": Array [
+ Uint8Array [
115,
101,
99,
111,
110,
100,
32,
107,
101,
121,
- ],
- "type": "Buffer",
- }
+ ],
0,
"@bob:example.org:bobsphone",
Number of calls: 1
at Object.toHaveBeenCalledWith (spec/unit/matrixrtc/MatrixRTCSession.spec.ts:1539:54)
|
Run tests:
src/base64.ts#L55
TypeError: atob is not a function
at atob (src/base64.ts:55:25)
at itFunc.next (<anonymous>)
at Function.from (<anonymous>)
at from (src/base64.ts:63:23)
at Object.<anonymous> (spec/unit/base64.spec.ts:47:62)
|
Run tests:
src/base64.ts#L27
TypeError: btoa is not a function
at btoa (src/base64.ts:27:12)
at encodeBase64 (src/base64.ts:36:12)
at encodeUnpaddedBase64 (src/base64.ts:45:12)
at Object.<anonymous> (spec/unit/base64.spec.ts:57:48)
|
Run tests:
src/base64.ts#L55
TypeError: atob is not a function
at atob (src/base64.ts:55:25)
at itFunc.next (<anonymous>)
at Function.from (<anonymous>)
at from (src/base64.ts:63:23)
at Object.<anonymous> (spec/unit/base64.spec.ts:62:62)
|
Run tests:
src/base64.ts#L27
TypeError: btoa is not a function
at btoa (src/base64.ts:27:12)
at Object.<anonymous> (spec/unit/base64.spec.ts:71:43)
|
Run tests:
src/base64.ts#L55
TypeError: atob is not a function
at atob (src/base64.ts:55:25)
at itFunc.next (<anonymous>)
at Function.from (<anonymous>)
at from (src/base64.ts:63:23)
at Object.<anonymous> (spec/unit/base64.spec.ts:84:40)
|
Loading