- To explore the Factory Pattern with JavaScript
- To learn about using Prototypes and various
Object()methods such as:Object.create()Object.freeze()Object.seal()(perhaps)
- How closures are helpful for protecting unexpected changes to an object's properties
- To leverage BDD/TDD for sanity and expediency I was tinkering around with a pattern I had not used in a while and it occurred to me that I could make the most of this exercise if I added some tests to rapidly verify my assertions!
- Clone this repo
- Install using your preferred tool (
yarn,npm, etc.) - Run tests with
yarn test.
- JavaScript Object
- Mocha JS (for testing)
- I'd like to highlight the Node #assert module.
A push or a pull request to main triggers GitHub Actions:
- A
Node.js CIprocess that ensuresyarn testpasses.