Bug 1856942: part 5) Factor async loading of a sheet out of `Loader::LoadSheet`....
[gecko.git] / testing / docs / assert.rst
blob4957efb568516071a027696fbb913ad496e19d22
1 Assert module
2 =============
4 For XPCShell tests and mochitests, ``Assert`` is already present as an
5 instantiated global to which you can refer - you don't need to construct it
6 yourself. You can immediately start using ``Assert.ok`` and similar methods as
7 test assertions.
9 The full class documentation follows, but it is perhaps worth noting that this
10 API is largely identical to
11 `NodeJS' assert module <https://nodejs.org/api/assert.html>`_, with some
12 omissions/changes including strict mode and string matching.
14 .. js:autoclass:: Assert
15   :members: ok, equal, notEqual, strictEqual, notStrictEqual, deepEqual, notDeepEqual,
16             greater, less, greaterOrEqual, lessOrEqual, stringContains, stringMatches,
17             throws, rejects, *