Skip to content

Commit

Permalink
chore: revert error to node 14
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jun 9, 2023
1 parent 5592606 commit 3116a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/fetch/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ test.serial('it throws error when receiving invalid json while fetching stats',
try {
const stats = await fetchStats('https://opencollective.com/fakecollective')
t.is(stats, undefined)
t.is(t.context.consola.firstCall.lastArg.message, 'FetchError: invalid json response body at https://opencollective.com/fakecollective.json reason: Unexpected token \'o\', "oh no! It\'s no JSON" is not valid JSON')
t.is(t.context.consola.firstCall.lastArg.message, 'FetchError: invalid json response body at https://opencollective.com/fakecollective.json reason: Unexpected token o in JSON at position 0')
t.is(t.context.consola.secondCall.lastArg.message, 'Could not load the stats for fakecollective')
} catch (e) {
t.fail()
Expand Down

0 comments on commit 3116a46

Please sign in to comment.