diff options
author | Hailey <me@haileyok.com> | 2024-09-25 15:05:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 15:05:33 -0700 |
commit | 58036ffb521032a77957b6888127bd640922eec6 (patch) | |
tree | c10e6698b3023aab53e717d29a9b93ef942b4019 /__tests__ | |
parent | b1ca2503de55c41431aac38db4d164da7d506d4f (diff) | |
download | voidsky-58036ffb521032a77957b6888127bd640922eec6.tar.zst |
Filter errors that get sent to Sentry (#5247)
Diffstat (limited to '__tests__')
-rw-r--r-- | __tests__/lib/errors.test.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/__tests__/lib/errors.test.ts b/__tests__/lib/errors.test.ts index 39e8d189e..e72139684 100644 --- a/__tests__/lib/errors.test.ts +++ b/__tests__/lib/errors.test.ts @@ -9,11 +9,11 @@ describe('isNetworkError', () => { ] const outputs = [true, false, false, true] - it('correctly distinguishes network errors', () => { - for (let i = 0; i < inputs.length; i++) { - const input = inputs[i] - const result = isNetworkError(input) - expect(result).toEqual(outputs[i]) - } - }) + for (let i = 0; i < inputs.length; i++) { + const input = inputs[i] + const output = outputs[i] + it(`correctly distinguishes network errors for ${input}`, () => { + expect(isNetworkError(input)).toEqual(output) + }) + } }) |