{"id":20201122,"url":"https://github.com/pheralb/katas-testing","last_synced_at":"2026-06-09T15:01:29.500Z","repository":{"id":129284745,"uuid":"419034425","full_name":"pheralb/katas-testing","owner":"pheralb","description":"🧪 Practicing kata testing","archived":false,"fork":false,"pushed_at":"2021-10-19T18:34:23.000Z","size":105,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-03T08:45:46.625Z","etag":null,"topics":["javascript","katas"],"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/pheralb.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":"2021-10-19T17:52:47.000Z","updated_at":"2023-03-07T02:08:42.000Z","dependencies_parsed_at":"2023-05-18T01:30:43.551Z","dependency_job_id":null,"html_url":"https://github.com/pheralb/katas-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pheralb/katas-testing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fkatas-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fkatas-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fkatas-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fkatas-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pheralb","download_url":"https://codeload.github.com/pheralb/katas-testing/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pheralb%2Fkatas-testing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34112225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["javascript","katas"],"created_at":"2024-11-14T04:47:39.520Z","updated_at":"2026-06-09T15:01:29.485Z","avatar_url":"https://github.com/pheralb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## 🚀 Practice testing:\n\n- Run test (with [Jest](https://jestjs.io/es-ES/)):\n\n- Run all test\n\n```bash\nnpm run test\n```\nor\n\n```bash\nnpm test -- kata1b/hiddenWord.js\n```\n\n## 🧪 Kata -\u003e [The Hidden Word](https://www.codewars.com/kata/5906a218dfeb0dbb52000005)\n\n- Maya writes weekly articles to a well known magazine, but she is missing one word each time she is about to send the article to the editor. The article is not complete without this word. Maya has a friend, Dan, and he is very good with words, but he doesn't like to just give them away. He texts Maya a number and she needs to find out the hidden word. The words can contain only the letter:\n\n```\n\"a\", \"b\", \"d\", \"e\", \"i\", \"l\", \"m\", \"n\", \"o\", and \"t\".\n```\n\n- Luckily, Maya has the key:\n\n```\n\"a\" : 6\n\"b\" : 1\n\"d\" : 7\n\"e\" : 4\n\"i\" : 3\n\"l\" : 2\n\"m\" : 9\n\"n\" : 8\n\"o\" : 0\n\"t\" : 5\n```\n\nYou can help Maya by writing a function that will take a number between 100 and 999999 and return a string with the word.\n\nThe input is always a number, contains only the numbers in the key. The output should be always a string with one word, all lowercase.\n\nMaya won't forget to thank you at the end of her article :)\n\n- Result:\n\n```\n✓ returns aid if 637 (1 ms)\n✓ returns debt if 7415 (1 ms)\n✓ returns email if 7415\n✓ returns melted if 942547 (1 ms)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheralb%2Fkatas-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpheralb%2Fkatas-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpheralb%2Fkatas-testing/lists"}