{"id":22125313,"url":"https://github.com/arwl2016/node-tests","last_synced_at":"2026-05-03T19:34:46.046Z","repository":{"id":84340837,"uuid":"78277750","full_name":"ARWL2016/node-tests","owner":"ARWL2016","description":"Udemy course projects - Andrew Mead: Complete Node","archived":false,"fork":false,"pushed_at":"2017-03-28T04:31:21.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-24T07:57:10.025Z","etag":null,"topics":["expect","mocha","rewire","supertest","testing"],"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/ARWL2016.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":"2017-01-07T12:28:28.000Z","updated_at":"2017-01-07T12:30:55.000Z","dependencies_parsed_at":"2023-07-09T01:46:06.864Z","dependency_job_id":null,"html_url":"https://github.com/ARWL2016/node-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ARWL2016/node-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARWL2016%2Fnode-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARWL2016%2Fnode-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARWL2016%2Fnode-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARWL2016%2Fnode-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ARWL2016","download_url":"https://codeload.github.com/ARWL2016/node-tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ARWL2016%2Fnode-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32582840,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["expect","mocha","rewire","supertest","testing"],"created_at":"2024-12-01T16:19:08.804Z","updated_at":"2026-05-03T19:34:46.042Z","avatar_url":"https://github.com/ARWL2016.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Complete Node Developer Course (Udemy: Andrew Mead) - Node Tests\n\nhttps://www.udemy.com/the-complete-nodejs-developer-course-2/learn/v4/content     \nhttps://github.com/ARWL2016/node-tests   \nhttps://github.com/ARWL2016/compendium/blob/master/reviews/testing \n\nThis module is a demonstration of basic testing methods in Node. It also covers rewire and spies. This part is not clear. \n \n#### Featured Libraries   \n1. Mocha 3.0.0 - test framework   \n2. Expect 1.20.2 - assertion library\n3. Supertest 2.0.0 - for testing http requests \n4. Rewire 2.5.2 - dependency injection\n\n#### Notes \n1. Mocha is not required in a test file. It is used to run tests and define test files - see package.json. It provides the *describe* and *it* structure. \n2. The basic structure of an expect assertion is `expect().toBe()`\n3. Supertest allows us to make request of the app through a particular route and then expect a particular response. Note that we pass in done to make the test asynchronous. \n\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farwl2016%2Fnode-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farwl2016%2Fnode-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farwl2016%2Fnode-tests/lists"}