Skip to content

Commit

Permalink
test: expect error argument
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrasinskis committed Nov 22, 2024
1 parent 31f926b commit f0757ab
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@ describe("FEATURE_FLAG_ENVIRONMENT", () => {
);
expect(FEATURE_FLAG_ENVIRONMENT).toEqual(defaultFeatureFlagValues);
expect(spyConsoleError).toBeCalledTimes(1);
expect(spyConsoleError).toBeCalledWith(
"Error parsing featureFlags",
new SyntaxError("Unexpected token T in JSON at position 27")
);
});
});

0 comments on commit f0757ab

Please sign in to comment.