Skip to content

Commit d7b13f0

Browse files
committed
Fix webpack warning about missing .message property
1 parent 2554547 commit d7b13f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/error.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,6 @@ it("falls back with different error", async () => {
219219
} catch (error) {
220220
const wrapped = await CertificateError.maybeWrap(error, "1", logger)
221221
expect(wrapped instanceof CertificateError).toBeFalsy()
222-
expect(wrapped.message).toMatch(/failed with status code 500/)
222+
expect((wrapped as Error).message).toMatch(/failed with status code 500/)
223223
}
224224
})

0 commit comments

Comments
 (0)