diff --git a/README.md b/README.md index 1acfbd1..feb5f1c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ This small tool is meant to mitigate this gap. import { decode } from "react-error-decoder"; decode( - "Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings." + "Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.", ); // Output: diff --git a/src/index.ts b/src/index.ts index cbb16b3..a1d7d4a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,7 +37,7 @@ function decodeDetails(message: string): { if (!collection[invariant]) { throw new RangeError( - `Collection does not include invariant "${invariant}"` + `Collection does not include invariant "${invariant}"`, ); } diff --git a/src/test.ts b/src/test.ts index 652e9f7..6f8c0fd 100644 --- a/src/test.ts +++ b/src/test.ts @@ -25,7 +25,7 @@ describe("react-error-decoder", (): void => { "NGABuilder(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.", ], ])("decodes messages successfully", (input: string, message: string): void => - expect(decode(input)).toBe(message) + expect(decode(input)).toBe(message), ); test("Leave an error not in dictionary as is", (): void => { const input = @@ -45,7 +45,7 @@ describe("react-error-decoder", (): void => { "Minified React error #1: Something else has gone wrong. https://www.facebook.com", "Minified React error #1: Something else has gone wrong. https://www.facebook.com?invariant=900", ])("falls back to original message", (message: string): void => - expect(decode(message)).toBe(message) + expect(decode(message)).toBe(message), ); test("updated snapshot", (): void => expect(decode.collection).toMatchSnapshot());