{"id":16073683,"url":"https://github.com/phstc/ajsunit","last_synced_at":"2025-03-22T08:44:29.310Z","repository":{"id":136844822,"uuid":"1037962","full_name":"phstc/ajsunit","owner":"phstc","description":"Yes, it's an Another JavaScript Unit Test library","archived":false,"fork":false,"pushed_at":"2012-09-06T03:06:11.000Z","size":104,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T08:45:24.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://pablocantero.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phstc.png","metadata":{"files":{"readme":"README.rdoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-10-30T18:43:40.000Z","updated_at":"2014-04-21T11:19:29.000Z","dependencies_parsed_at":"2023-03-17T23:31:00.644Z","dependency_job_id":null,"html_url":"https://github.com/phstc/ajsunit","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/phstc%2Fajsunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fajsunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fajsunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phstc%2Fajsunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phstc","download_url":"https://codeload.github.com/phstc/ajsunit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244931585,"owners_count":20534009,"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":[],"created_at":"2024-10-09T08:22:10.608Z","updated_at":"2025-03-22T08:44:29.287Z","avatar_url":"https://github.com/phstc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Yes, it's an Another JavaScript Unit Test library\n\n== Why?\n\n* Simple \u0026\u0026 Small \u0026\u0026 Fast as possible.\n* No external dependecies (JavasScript, HTML or CSS files) needed.\n\n== Assertions\n\n* ok(condition, message)\n* ne(expected, actual, message)\n* eq(expected, actual, message)\n\nThe *message* parameter is optional for all assertions.\n\n== Example\n\n    \u003cscript src=\"https://github.com/phstc/ajsunit/raw/master/src/ajsunit.js\" type=\"text/javascript\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n    var testSuite = {\n      tests: {\n        \"test an error condition\": function(){\n          // throws \"ReferenceError\" \"asdasadasdasda is not defined\"\n          asdasadasdasda\n        },\n        \"test a false, true, false and error condition\": function(t){\n          t.ok(\"a\" === \"b\");\n          t.ok(\"a\" !== \"b\");\n          t.ok(\"a\" === \"c\");\n        },\n        \"test a true condition\": function(t){\n          t.ok(\"a\" === \"a\");\n        },\n        \"test a false comparison\": function(t){\n          t.ne(\"a\", \"b\");\n        },\n        \"test a true comparison\": function(t){\n          t.eq(\"a\", \"a\");\n        }\n      }\n    };\n    new AJSUnit(testSuite).executeOnLoad();\n    \u003c/script\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphstc%2Fajsunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphstc%2Fajsunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphstc%2Fajsunit/lists"}