projects
projects copied to clipboard
test(the-typeinator): add index.test.js for syntactic-sugar
trafficstars
PR Checklist
- [x] Addresses an existing open issue: fixes #322
- [x] That issue was marked as accepting prs
- [x] Steps in CONTRIBUTING.md were taken
Overview
This PR adds a index.test.js file to the 01-syntactic-sugar step in the the-typeinator project.
The README for this step instructs learners to run npm run test -- 1 --watch, but the folder does not contain any test file by default. This test ensures that the announceMachines function behaves correctly, verifying both the label logic and template literal usage.
This change aims to improve the developer experience by ensuring the test command actually runs something and validates expected behavior.