Skip to content

Commit a7be50d

Browse files
authored
docs: Fix argument name in expect.md (#6254)
1 parent c997937 commit a7be50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/expect.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,7 @@ test('"id" is a number', () => {
13621362

13631363
`expect.closeTo` is useful when comparing floating point numbers in object properties or array item. If you need to compare a number, please use `.toBeCloseTo` instead.
13641364

1365-
The optional `numDigits` argument limits the number of digits to check **after** the decimal point. For the default value `2`, the test criterion is `Math.abs(expected - received) < 0.005 (that is, 10 ** -2 / 2)`.
1365+
The optional `precision` argument limits the number of digits to check **after** the decimal point. For the default value `2`, the test criterion is `Math.abs(expected - received) < 0.005 (that is, 10 ** -2 / 2)`.
13661366

13671367
For example, this test passes with a precision of 5 digits:
13681368

0 commit comments

Comments
 (0)