Hard-code demo URL #18561
ci.yml
on: push
test
7m 54s
generate-headers
55s
types
1m 25s
lint
4m 10s
dead-code
2m 3s
prettier
30s
Matrix: build
Matrix: end-to-end-tests
upload-to-codecov
0s
Annotations
6 errors and 1 warning
setToolbarIconFromTheme › uses the default manifest icon when no toolbarIcon is defined and the theme is default:
src/background/setToolbarIconFromTheme.test.ts#L52
expect(jest.fn()).not.toHaveBeenCalled()
Expected number of calls: 0
Received number of calls: 1
1: "https://svg-to-png.mrproper.dev/https://upload.wikimedia.org/wikipedia/commons/f/fd/Ghostscript_Tiger.svg", {"responseType": "blob"}
at Object.toHaveBeenCalled (src/background/setToolbarIconFromTheme.test.ts:52:26)
|
setToolbarIconFromTheme › fetches the image data and sets the browser action icon:
src/background/setToolbarIconFromTheme.test.ts#L70
expect(jest.fn()).toHaveBeenCalledWith(...expected)
- Expected
+ Received
Object {
- "imageData": "image data",
+ "path": "path to icons",
},
Number of calls: 1
at Object.toHaveBeenCalledWith (src/background/setToolbarIconFromTheme.test.ts:70:35)
|
blobToImageData › should return ImageData from a Blob:
src/utils/canvasUtils.test.ts#L39
expect(jest.fn()).toHaveBeenCalledWith(...expected)
Expected: Any<HTMLImageElement>, 0, 0, 32, 32
Received: {"close": [Function close], "height": 32, "width": 32}, 0, 0, 32, 32
Number of calls: 1
at Object.toHaveBeenCalledWith (src/utils/canvasUtils.test.ts:39:58)
|
loadImageData › should return ImageData when the request is successful:
src/utils/canvasUtils.ts#L42
Request failed with status code 404
at createAxiosError (node_modules/axios-mock-adapter/src/utils.js:139:34)
at Object.settle (node_modules/axios-mock-adapter/src/utils.js:127:7)
at handleRequest (node_modules/axios-mock-adapter/src/handle_request.js:152:15)
at node_modules/axios-mock-adapter/src/index.js:23:7
at MockAdapter.<anonymous> (node_modules/axios-mock-adapter/src/index.js:22:12)
at dispatchRequest (node_modules/axios/lib/core/dispatchRequest.js:58:10)
at Axios.request (node_modules/axios/lib/core/Axios.js:109:15)
at Axios.<computed> [as get] (node_modules/axios/lib/core/Axios.js:131:17)
at Function.wrap [as get] (node_modules/axios/lib/helpers/bind.js:9:15)
at get (src/utils/canvasUtils.ts:42:43)
at loadAsBlob (src/utils/canvasUtils.ts:55:22)
at Object.<anonymous> (src/utils/canvasUtils.test.ts:57:39)
|
loadImageData › should throw when the request fails:
node_modules/axios-mock-adapter/src/utils.js#L139
expect(received).rejects.toThrow(expected)
Expected substring: "Request failed with status code 500"
Received message: "Request failed with status code 404"
40 | let blob = await loadAsBlob(url);
41 |
> 42 | if (blob.type === "image/svg+xml") {
| ^
43 | // The URL check failed, fetch again, using the proxy this time
44 | url = getSvgProxyUrl(url);
45 | blob = await loadAsBlob(url);
at createAxiosError (node_modules/axios-mock-adapter/src/utils.js:139:34)
at Object.settle (node_modules/axios-mock-adapter/src/utils.js:127:7)
at handleRequest (node_modules/axios-mock-adapter/src/handle_request.js:152:15)
at node_modules/axios-mock-adapter/src/index.js:23:7
at MockAdapter.<anonymous> (node_modules/axios-mock-adapter/src/index.js:22:12)
at dispatchRequest (node_modules/axios/lib/core/dispatchRequest.js:58:10)
at Axios.request (node_modules/axios/lib/core/Axios.js:109:15)
at Axios.<computed> [as get] (node_modules/axios/lib/core/Axios.js:131:17)
at Function.wrap [as get] (node_modules/axios/lib/helpers/bind.js:9:15)
at get (src/utils/canvasUtils.ts:42:43)
at loadAsBlob (src/utils/canvasUtils.ts:55:22)
at Object.<anonymous> (src/utils/canvasUtils.test.ts:65:31)
at Object.toThrow (node_modules/expect/build/index.js:218:22)
at Object.toThrow (src/utils/canvasUtils.test.ts:65:54)
|
test
Process completed with exit code 1.
|
prettier
The `python-version` input is not set. The version of Python currently in `PATH` will be used.
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
brick-headers
Expired
|
17 KB |
|
build-staging-bundle-dependency-report
Expired
|
542 KB |
|
end-to-end-tests-report
Expired
|
183 KB |
|
end-to-end-tests-report-mv3
Expired
|
183 KB |
|