Skip to content

Instantly share code, notes, and snippets.

@Waltari10
Created November 5, 2021 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Waltari10/52e86a6f2984dc8d01c8794fd1a799c2 to your computer and use it in GitHub Desktop.
Save Waltari10/52e86a6f2984dc8d01c8794fd1a799c2 to your computer and use it in GitHub Desktop.
expect(received).toEqual(expected) // deep equality
Expected: "0.00"
Received: "12.00"
10 |
11 | expect(feetNew.toFixed(2)).toEqual(feet.toFixed(2));
> 12 | expect(inchesNew.toFixed(2)).toEqual(inches.toFixed(2));
| ^
13 | };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment