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
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,