{"id":21432859,"url":"https://github.com/ardier16/jsunit","last_synced_at":"2026-04-13T16:34:45.629Z","repository":{"id":98055318,"uuid":"158374377","full_name":"ardier16/jsunit","owner":"ardier16","description":"A simple unit testing framework written in JavaScript (ES6)","archived":false,"fork":false,"pushed_at":"2019-05-05T19:35:41.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-23T08:43:53.730Z","etag":null,"topics":["css3","es6","html5","javascript","javascript-library","testing-framework","unit-testing","vanilla-js"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ardier16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-20T10:51:12.000Z","updated_at":"2019-05-05T19:35:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"7428833d-fa1f-4de8-a9cc-ca440668cb64","html_url":"https://github.com/ardier16/jsunit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardier16%2Fjsunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardier16%2Fjsunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardier16%2Fjsunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ardier16%2Fjsunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ardier16","download_url":"https://codeload.github.com/ardier16/jsunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945479,"owners_count":20372890,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css3","es6","html5","javascript","javascript-library","testing-framework","unit-testing","vanilla-js"],"created_at":"2024-11-22T23:22:02.372Z","updated_at":"2026-04-13T16:34:40.584Z","avatar_url":"https://github.com/ardier16.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JS Unit\nA simple unit testing framework written in JavaScript (ES6).\n\n## Using\n```js\nJSUnit.beforeEach(index =\u003e {\n  console.log(\"Start test #\" + index);\n});\n\nJSUnit.afterEach(index =\u003e {\n  console.log(\"Finish test #\" + index);\n});\n\n\nJSUnit.module(\"NaN\")\n\nJSUnit.test(\"IsNaN Function\", assert =\u003e {\n  assert.isTrue(isNaN(NaN), \"NaN parameter\");\n  assert.isFalse(isNaN(Infinity), \"Infinity is not NaN\");\n});\n\n\nJSUnit.module(\"Sum\");\n\nJSUnit.test(\"Sum Function\", assert =\u003e {\n  assert.equal(sum(4, 5), 9, \"Simple add\");\n  assert.equal(sum(\"5\", 8), 13, \"One string parameter\");\n  assert.equal(sum(), 0, \"No arguments\");\n});\n\n\nJSUnit.module(\"Power\");\n\nJSUnit.test(\"Power function\", assert =\u003e {\n  assert.equal(pow(2, 3), 8, \"2**3 = 8\");\n  assert.equal(pow(3, 4), 81, \"3**4 = 81\");\n  assert.isNaN(pow(2, -1), \"NaN for negative exponents\");\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardier16%2Fjsunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fardier16%2Fjsunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fardier16%2Fjsunit/lists"}