{"json_modified": "2016-06-23T02:17:08.039130", "uuid": "e974ed0a-eede-4a87-af27-37d82191856f", "title": "Assert.jsm", "url": "/en-US/docs/Mozilla/JavaScript_code_modules/Assert.jsm", "tags": [], "translations": [], "modified": "2016-06-23T02:17:08", "label": "Assert.jsm", "localization_tags": [], "locale": "en-US", "id": 108233, "last_edit": "2016-06-23T02:17:05", "summary": "The Assert.jsm
JavaScript code module implements the CommonJS Unit Testing specification version 1.1, which provides a basic, standardized interface for performing in-code logical assertions with optional, customizable error reporting. To use it, you first need to import the code module into your JavaScript scope:", "sections": [{"id": "Method_overview", "title": "Method overview"}, {"id": "Constructor", "title": "Constructor"}, {"id": "Methods", "title": "Methods"}, {"id": "ok()", "title": "ok()"}, {"id": "Parameters", "title": "Parameters"}, {"id": "equal()", "title": "equal()"}, {"id": "Parameters_2", "title": "Parameters"}, {"id": "notEqual()", "title": "notEqual()"}, {"id": "Parameters_3", "title": "Parameters"}, {"id": "deepEqual()", "title": "deepEqual()"}, {"id": "Parameters_4", "title": "Parameters"}, {"id": "notDeepEqual()", "title": "notDeepEqual()"}, {"id": "Parameters_5", "title": "Parameters"}, {"id": "strictEqual()", "title": "strictEqual()"}, {"id": "Parameters_6", "title": "Parameters"}, {"id": "notStrictEqual()", "title": "notStrictEqual()"}, {"id": "Parameters_7", "title": "Parameters"}, {"id": "throws()", "title": "throws()"}, {"id": "Parameters_8", "title": "Parameters"}, {"id": "rejects()", "title": "rejects()"}, {"id": "Parameters_9", "title": "Parameters"}, {"id": "greater()", "title": "greater()"}, {"id": "Parameters_10", "title": "Parameters"}, {"id": "greaterOrEqual()", "title": "greaterOrEqual()"}, {"id": "Parameters_11", "title": "Parameters"}, {"id": "less()", "title": "less()"}, {"id": "Parameters_12", "title": "Parameters"}, {"id": "lessOrEqual()", "title": "lessOrEqual()"}, {"id": "Parameters_13", "title": "Parameters"}, {"id": "setReporter()", "title": "setReporter()"}, {"id": "Parameters_14", "title": "Parameters"}, {"id": "report()", "title": "report()"}, {"id": "Parameters_15", "title": "Parameters"}, {"id": "Examples", "title": "Examples"}, {"id": "Custom_reporter_example", "title": "Custom reporter example"}, {"id": "See_also", "title": "See also"}], "slug": "Mozilla/JavaScript_code_modules/Assert.jsm", "review_tags": []}