Skip to content

Commit

Permalink
Docs: Add external links to assert.closeTo() page
Browse files Browse the repository at this point in the history
  • Loading branch information
Krinkle committed Jan 30, 2025
1 parent daab672 commit 01585ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/api/assert/closeTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,9 @@ QUnit.test('bad example', assert => {
## See also

* Use [`assert.propContains()`](./propContains.md) to partially compare an object.

## External links

* Mocha [`expect.within()`](https://www.chaijs.com/api/bdd/#method_within), Jasmine [`expect().toBeCloseTo()`](https://jasmine.github.io/api/edge/matchers.html), and Deno [assertAlmostEquals](https://deno.land/std@0.210.0/testing/asserts.ts?s=assertAlmostEquals) are all similar to `assert.closeTo()` in QUnit.
* PHPUnit [`assertEqualsWithDelta`](https://docs.phpunit.de/en/12.0/assertions.html#assertequalswithdelta), is similar to QUnit `assert.closeTo()` in JavaScript.
* Python [`assertAlmostEqual`](https://docs.python.org/3/library/unittest.html#unittest.TestCase.assertAlmostEqual), is similar QUnit `assert.closeTo()` in JavaScript.

0 comments on commit 01585ac

Please sign in to comment.