We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6f1950 commit 3878ee1Copy full SHA for 3878ee1
1 file changed
src/renderer/utils/api/errors.test.ts
@@ -83,7 +83,7 @@ describe('renderer/utils/api/errors.ts', () => {
83
});
84
85
it('network error - no status', () => {
86
- const mockError = new RequestError('Network error', 0, {
+ const mockError = new RequestError('Network error', 500, {
87
request: {
88
method: 'GET',
89
url: 'https://api.github.com',
@@ -94,8 +94,8 @@ describe('renderer/utils/api/errors.ts', () => {
94
expect(result).toBe(Errors.NETWORK);
95
96
97
- it('unknown error - unhandled 403', () => {
98
- const mockError = new RequestError('Forbidden', 403, {
+ it('unknown error - unhandled 418', () => {
+ const mockError = new RequestError('Forbidden', 418, {
99
100
101
0 commit comments