{"id":19364500,"url":"https://github.com/math2001/testrjs","last_synced_at":"2025-02-24T13:13:39.278Z","repository":{"id":74807395,"uuid":"76924302","full_name":"math2001/testrjs","owner":"math2001","description":"A javascript test library inspired by python","archived":false,"fork":false,"pushed_at":"2016-12-20T04:57:40.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-06T20:52:27.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/math2001.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-20T04:54:46.000Z","updated_at":"2016-12-20T04:55:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a006397-7058-4373-bda4-41c064399099","html_url":"https://github.com/math2001/testrjs","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/math2001%2Ftestrjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Ftestrjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Ftestrjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/math2001%2Ftestrjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/math2001","download_url":"https://codeload.github.com/math2001/testrjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240483765,"owners_count":19808636,"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-11-10T07:37:32.728Z","updated_at":"2025-02-24T13:13:39.260Z","avatar_url":"https://github.com/math2001.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testr\n\nTestr is a javascript mini library that helps you running some test. It is hugely inspired by the unitest in python.\n\nHow to use:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"js/testr.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"js/app.js\"\u003e\u003c/script\u003e\n```\n\n```js\n// app.js\n\nclass MyClassTestr extends Testr {\n\n    checkAttr() {\n        this.assertDefined(this.hello)\n        this.assertDefined(this.world)\n\n        this.assertEqual(typeof this.hello, 'string')\n        this.assertEqual(typeof this.world, 'number')\n    }\n\n}\nTestr.run(MyClassTestr)\n```\n\n\nFor now, here are the function there is:\n\n- `assertEqual`\n- `assertNotEqual`\n- `assertDefined` (a shortcut for `assertNotEqual(typeof myVar, 'undefined')`)\n\nMore to come...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Ftestrjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmath2001%2Ftestrjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmath2001%2Ftestrjs/lists"}