We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad11447 commit 27228e8Copy full SHA for 27228e8
1 file changed
docs/UsingMatchers.md
@@ -98,7 +98,7 @@ For floating point equality, use `toBeCloseTo` instead of `toEqual`, because you
98
```js
99
test('adding floating point numbers', () => {
100
const value = 0.1 + 0.2;
101
- expect(value).not.toBe(0.3); // It isn't! Because rounding error
+//expect(value).toBe(0.3); This won't work because of rounding error
102
expect(value).toBeCloseTo(0.3); // This works.
103
});
104
```
0 commit comments