initial implementation of screen sharing via cf workers #64
Annotations
7 errors
|
test
Process completed with exit code 1.
|
|
src/test/fileEditor-integration.test.ts > fileEditor integration > should demonstrate the difference between textContent and innerText behavior:
src/test/fileEditor-integration.test.ts#L131
AssertionError: expected '' to be 'Line 1\nLine 2\n\nLine 4' // Object.is equality
- Expected
+ Received
- Line 1
- Line 2
-
- Line 4
❯ src/test/fileEditor-integration.test.ts:131:29
|
|
src/test/fileEditor-integration.test.ts > fileEditor integration > should handle empty content correctly:
src/test/fileEditor-integration.test.ts#L64
AssertionError: expected "spy" to be called with arguments: [ { path: '/empty.txt', …(1) } ]
Received:
1st spy call:
[
{
- "data": Any<Uint8Array>,
+ "data": Uint8Array [],
"path": "/empty.txt",
},
]
Number of calls: 1
❯ src/test/fileEditor-integration.test.ts:64:27
|
|
src/test/fileEditor-integration.test.ts > fileEditor integration > should preserve content with line breaks through write/read cycle:
src/test/fileEditor-integration.test.ts#L33
AssertionError: expected "spy" to be called with arguments: [ { path: '/test.txt', …(1) } ]
Received:
1st spy call:
[
{
- "data": Any<Uint8Array>,
+ "data": Uint8Array [
+ 76,
+ 105,
+ 110,
+ 101,
+ 32,
+ 49,
+ 10,
+ 76,
+ 105,
+ 110,
+ 101,
+ 32,
+ 50,
+ 10,
+ 76,
+ 105,
+ 110,
+ 101,
+ 32,
+ 51,
+ 10,
+ 10,
+ 69,
+ 109,
+ 112,
+ 116,
+ 121,
+ 32,
+ 108,
+ 105,
+ 110,
+ 101,
+ 32,
+ 97,
+ 98,
+ 111,
+ 118,
+ 101,
+ ],
"path": "/test.txt",
},
]
Number of calls: 1
❯ src/test/fileEditor-integration.test.ts:33:27
|
|
src/lib/fileEditor.test.ts > fileEditor > writeTextFile > should handle unicode content:
src/lib/fileEditor.test.ts#L68
AssertionError: expected "spy" to be called with arguments: [ { path: '/unicode.txt', …(1) } ]
Received:
1st spy call:
[
{
- "data": Any<Uint8Array>,
+ "data": Uint8Array [
+ 72,
+ 101,
+ 108,
+ 108,
+ 111,
+ 32,
+ 240,
+ 159,
+ 140,
+ 141,
+ 33,
+ 32,
+ 85,
+ 110,
+ 105,
+ 99,
+ 111,
+ 100,
+ 101,
+ 32,
+ 116,
+ 101,
+ 115,
+ 116,
+ 58,
+ 32,
+ 206,
+ 177,
+ 206,
+ 178,
+ 206,
+ 179,
+ 32,
+ 206,
+ 180,
+ 206,
+ 181,
+ 206,
+ 182,
+ ],
"path": "/unicode.txt",
},
]
Number of calls: 1
❯ src/lib/fileEditor.test.ts:68:29
|
|
src/lib/fileEditor.test.ts > fileEditor > writeTextFile > should handle empty content:
src/lib/fileEditor.test.ts#L50
AssertionError: expected "spy" to be called with arguments: [ { path: '/empty.txt', …(1) } ]
Received:
1st spy call:
[
{
- "data": Any<Uint8Array>,
+ "data": Uint8Array [],
"path": "/empty.txt",
},
]
Number of calls: 1
❯ src/lib/fileEditor.test.ts:50:29
|
|
src/lib/fileEditor.test.ts > fileEditor > writeTextFile > should encode text content correctly:
src/lib/fileEditor.test.ts#L28
AssertionError: expected "spy" to be called with arguments: [ { path: '/test.txt', …(1) } ]
Received:
1st spy call:
[
{
- "data": Any<Uint8Array>,
+ "data": Uint8Array [
+ 72,
+ 101,
+ 108,
+ 108,
+ 111,
+ 44,
+ 32,
+ 87,
+ 111,
+ 114,
+ 108,
+ 100,
+ 33,
+ 10,
+ 84,
+ 104,
+ 105,
+ 115,
+ 32,
+ 105,
+ 115,
+ 32,
+ 97,
+ 32,
+ 116,
+ 101,
+ 115,
+ 116,
+ 32,
+ 102,
+ 105,
+ 108,
+ 101,
+ 46,
+ ],
"path": "/test.txt",
},
]
Number of calls: 1
❯ src/lib/fileEditor.test.ts:28:29
|