Skip to content

Commit

Permalink
fix: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Jan 28, 2024
1 parent 99c44c8 commit ff7d882
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/utils.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,19 +147,6 @@ describe('utils', () => {
expect(_validate({})).rejects.toEqual(result.error);
});
});

describe('when the fetch request is failing with not network error', () => {
test('rejects with the error', () => {
const result = new Error('Oh no');
fetch.mockReturnValue({
json: () => {
throw result;
}
});

expect(_validate({})).rejects.toEqual(result);
});
});
});
describe('getScores', () => {
const payload = {
Expand Down Expand Up @@ -445,18 +432,5 @@ describe('utils', () => {
expect(_getVp({})).rejects.toEqual(result.error);
});
});

describe('when the fetch request is failing with not network error', () => {
test('rejects with the error', () => {
const result = new Error('Oh no');
fetch.mockReturnValue({
json: () => {
throw result;
}
});

expect(_getVp({})).rejects.toEqual(result);
});
});
});
});

0 comments on commit ff7d882

Please sign in to comment.