Skip to content

Commit

Permalink
Fix when test doesn't match decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
leowrites committed Oct 17, 2024
1 parent 96b6c68 commit 152af8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion memory-viz/src/tests/draw.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ describe("draw function", () => {

const message = new RegExp(
"^WARNING: provided width \\(\\d+\\) is smaller than " +
"the required width \\(\\d+\\). The provided width has been overwritten " +
"the required width \\(\\d+(\\.\\d+)?\\). The provided width has been overwritten " +
"in the generated diagram.$"
);
expect(message.test(spy.mock.calls[0][0])).toBe(true);
Expand Down

0 comments on commit 152af8b

Please sign in to comment.