{"json_modified": "2016-07-28T00:53:27.963116", "uuid": "30a90313-ebe4-4936-bd45-75f343c5100e", "title": "Writing Gaia Unit Tests", "url": "/en-US/docs/Archive/Firefox_OS/Automated_testing/Writing_Gaia_Unit_Tests", "tags": ["Guide", "Gaia", "Firefox OS", "Testing", "unit tests"], "translations": [{"uuid": "f21037da-c372-44e9-bc0f-e04d5606aa7f", "title": "Writing Gaia Unit Tests", "url": "/bn-BD/docs/Mozilla/B2G_OS/Platform/Automated_testing/Writing_Gaia_Unit_Tests", "tags": ["unit tests", "NeedsReview", "Guide", "Firefox OS", "Gaia", "Testing"], "summary": "\u0987\u0989\u09a8\u09bf\u099f \u09aa\u09b0\u09c0\u0995\u09cd\u09b7\u09be\u09b0\u00a0\u00a0 \u099a\u09b2\u09ae\u09be\u09a8\u0995\u09be\u09b0\u09c0\u00a0 mocha \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09c7\u00a0 TDD interface \u0964 \u09ae\u09cb\u099a\u09be\u00a0\u00a0 \u09ae\u09be\u09b2\u09bf\u0995\u09be\u09a8\u09be \u0985\u09a7\u09bf\u0995\u09be\u09b0\u09c7\u09b0 \u09a6\u09be\u09ac\u09bf \u0995\u09b0\u09c7 \u09a8\u09be (\u0995\u09cb\u09a8\u09cb \u00a0 ok
or\u0985\u09a5\u09ac\u09be assert_equals \u09a8\u09c7\u0987
),\u09b8\u09c1\u09a4\u09b0\u09be\u0982 \u0986\u09ae\u09b0\u09be\u00a0 chai\u00a0 \u09ac\u09cd\u09af\u09ac\u09b9\u09be\u09b0 \u0995\u09b0\u09bf \u0985\u09a7\u09bf\u0995\u09be\u09b0 \u09a6\u09c7\u09df\u09be\u09b0 \u099c\u09a8\u09cd\u09af\u0964", "localization_tags": [], "locale": "bn-BD", "last_edit": "2016-07-28T00:52:39", "review_tags": []}], "modified": "2016-05-03T23:01:34", "label": "Writing Gaia Unit Tests", "localization_tags": [], "locale": "en-US", "id": 61119, "last_edit": "2016-05-03T23:01:10", "summary": "The unit test runner is mocha using the TDD interface. Mocha doesn't ship with an assertion library (there is no ok
or assert_equals
), so we use chai to provide assertions.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Writing_unit_tests", "title": "Writing unit tests"}, {"id": "File_naming", "title": null}, {"id": "Examples", "title": "Examples"}, {"id": "Example_Implementation_(gist)", "title": null}, {"id": "Example_Test_(gist)", "title": null}], "slug": "Archive/Firefox_OS/Automated_testing/Writing_Gaia_Unit_Tests", "review_tags": ["technical"]}