{"id":17018808,"url":"https://github.com/tkraak/intro-unit-test","last_synced_at":"2025-08-13T18:19:12.253Z","repository":{"id":25466555,"uuid":"104073385","full_name":"tkraak/intro-unit-test","owner":"tkraak","description":":circus_tent: Workshop: Intro to unit testing with AVA","archived":false,"fork":false,"pushed_at":"2023-01-03T21:46:16.000Z","size":896,"stargazers_count":1,"open_issues_count":7,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-01T19:09:21.872Z","etag":null,"topics":["ava","javascript","learn","testing","unit-test","unit-testing"],"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/tkraak.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":"2017-09-19T12:43:46.000Z","updated_at":"2021-04-02T02:49:44.000Z","dependencies_parsed_at":"2023-01-14T02:47:14.482Z","dependency_job_id":null,"html_url":"https://github.com/tkraak/intro-unit-test","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/tkraak%2Fintro-unit-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkraak%2Fintro-unit-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkraak%2Fintro-unit-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tkraak%2Fintro-unit-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tkraak","download_url":"https://codeload.github.com/tkraak/intro-unit-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393573,"owners_count":20931813,"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":["ava","javascript","learn","testing","unit-test","unit-testing"],"created_at":"2024-10-14T06:47:11.131Z","updated_at":"2025-04-05T20:14:26.545Z","avatar_url":"https://github.com/tkraak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction to writing unit tests with AVA\n\nThis repository serves as a gentle introduction to writing JavaScript [unit](https://dev.to/jackmarchant/no-excuses-write-unit-tests) tests with [AVA](https://github.com/avajs/ava).\n\nThe `getAmount()` function and the motivation to refactor it were taken from NodeSchool's [JavaScript Best Practices workshop](https://github.com/excellalabs/js-best-practices-workshopper).\n\nThe `orderTotal()` function was taken from the [Fun Fun Function](https://www.youtube.com/channel/UCO1cgjhGzsSYb1rsB4bFe4Q) video series on [Unit Tesing in JavaScript](https://www.youtube.com/playlist?list=PL0zVEGEvSaeF_zoW9o66wa_UCNE3a7BEr). Thanks @mpj!\n\n## Getting started\n\n- fork and clone this repo\n- `npm install` or `yarn install`\n- `npm test` to lint with [standard](https://standardjs.com) and run the tests with [AVA](https://github.com/avajs/ava)\n- `npm run lint` to lint only\n- happy learning ... pull requests welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkraak%2Fintro-unit-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftkraak%2Fintro-unit-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftkraak%2Fintro-unit-test/lists"}