about summary refs log tree commit diff
path: root/__tests__
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-09-25 15:05:33 -0700
committerGitHub <noreply@github.com>2024-09-25 15:05:33 -0700
commit58036ffb521032a77957b6888127bd640922eec6 (patch)
treec10e6698b3023aab53e717d29a9b93ef942b4019 /__tests__
parentb1ca2503de55c41431aac38db4d164da7d506d4f (diff)
downloadvoidsky-58036ffb521032a77957b6888127bd640922eec6.tar.zst
Filter errors that get sent to Sentry (#5247)
Diffstat (limited to '__tests__')
-rw-r--r--__tests__/lib/errors.test.ts14
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)
+    })
+  }
 })