{"id":21326248,"url":"https://github.com/masylum/j","last_synced_at":"2025-03-15T23:44:36.693Z","repository":{"id":66822742,"uuid":"2013248","full_name":"masylum/j","owner":"masylum","description":"The smallest testing library in nodejs","archived":false,"fork":false,"pushed_at":"2011-07-07T16:56:05.000Z","size":88,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-22T12:32:40.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/masylum.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}},"created_at":"2011-07-07T16:34:26.000Z","updated_at":"2014-09-23T10:57:37.000Z","dependencies_parsed_at":"2023-02-20T12:11:08.043Z","dependency_job_id":null,"html_url":"https://github.com/masylum/j","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/masylum%2Fj","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fj/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fj/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masylum%2Fj/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masylum","download_url":"https://codeload.github.com/masylum/j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806041,"owners_count":20350775,"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-21T21:08:54.802Z","updated_at":"2025-03-15T23:44:36.649Z","avatar_url":"https://github.com/masylum.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# j\n\n**j** is a testing library written in 5 lines of code (or 376 characters) which tries to be performant, with eye-catchy reports and easy to use.\n\nThis library is a shameless copy of txus famous [a](https://github.com/txus/a). But smaller.\n\nIn order to contribute to **j**, you have to bear in mind that the code must stay under 5 lines and with less than 80 chars per line.\n\n## Usage\n\nRSpec? Cucumber? Vows? Expresso?\n\nF**k, life is too short! Let's use j!!\n\n``` javascript\nvar test = j();\n\ntest([\n  function setup() {\n    this.user = {some: 'object'};\n  }\n, function test_user_has_property(assert) {\n    assert(this.user.some === 'object');\n    assert(!this.user.other);\n  }\n, function teardown() {\n    this.user = null;\n  }\n]);\n\ntest([\n  function setup() {\n    this.foo = [1, 2, 3];\n  }\n, function test_user_has_property(assert) {\n    assert(this.foo.length === 3);\n    assert(this.foo[2] \u003e 934); // Should fail at line 27\n\n    this.foo[1] = 99;\n\n    assert(this.foo[1] !== 2);\n  }\n, function teardown() {\n    this.bar = 'something';\n  }\n]);\n\ntest();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fj","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasylum%2Fj","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasylum%2Fj/lists"}