Feat select languages #17
Annotations
4 errors and 1 warning
src/shared/browser/__test__/chrome.test.ts > browser > storage > local > get/set > should resolve with error when data in storage is invalid:
src/shared/browser/__test__/chrome.test.ts#L39
AssertionError: expected { data: null, error: { …(2) } } to deeply equal { data: null, …(1) }
- Expected
+ Received
Object {
"data": null,
- "error": "ERROR_CAN_NOT_GET_DATA_FROM_STORAGE",
+ "error": Object {
+ "error": [SyntaxError: Expected ',' or '}' after property value in JSON at position 27],
+ "type": "ERROR_CAN_NOT_GET_DATA_FROM_STORAGE",
+ },
}
❯ src/shared/browser/__test__/chrome.test.ts:39:29
|
src/shared/browser/__test__/chrome.test.ts > browser > storage > local > get/set > should not set data to the storage if data is not valid:
src/shared/browser/__test__/chrome.test.ts#L82
AssertionError: expected { data: null, error: { …(2) } } to deeply equal { data: null, …(1) }
- Expected
+ Received
Object {
"data": null,
- "error": "ERROR_CAN_NOT_UPDATE_DATA_IN_STORAGE",
+ "error": Object {
+ "error": [TypeError: Converting circular structure to JSON
+ --> starting at object with constructor 'Object'
+ --- property 'circularRef' closes the circle],
+ "type": "ERROR_CAN_NOT_UPDATE_DATA_IN_STORAGE",
+ },
}
❯ src/shared/browser/__test__/chrome.test.ts:82:29
|
src/shared/browser/__test__/chrome.test.ts > browser > storage > local > onChanged > should invoke callback with error when storage changed with invalid new value:
src/shared/browser/__test__/chrome.test.ts#L165
AssertionError: expected "spy" to be called with arguments: [ { data: null, …(1) } ]
Received:
1st spy call:
Array [
Object {
"data": null,
- "error": "ERROR_CAN_NOT_GET_NEW_DATA_FROM_STORAGE",
+ "error": Object {
+ "error": [SyntaxError: Expected ',' or '}' after property value in JSON at position 27],
+ "type": "ERROR_CAN_NOT_GET_NEW_DATA_FROM_STORAGE",
+ },
},
]
Number of calls: 1
❯ src/shared/browser/__test__/chrome.test.ts:165:28
|
test
Process completed with exit code 1.
|
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|