Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhildred/jasmineclasstests
starting project that tests classes as well as functions
https://github.com/rhildred/jasmineclasstests
Last synced: 14 days ago
JSON representation
starting project that tests classes as well as functions
- Host: GitHub
- URL: https://github.com/rhildred/jasmineclasstests
- Owner: rhildred
- Created: 2022-02-18T16:21:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T19:32:40.000Z (10 months ago)
- Last Synced: 2024-04-14T14:03:09.347Z (9 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jasmineclasstests
using jasmine as in [textbook](https://www.oreilly.com/library/view/object-oriented-javascript/9781785880568/)This is a starting place for a simple project with tests. I introduced it (start of chapter 12) along with functions chapter 3 as the minimal requirement for tdd. Now that we have covered classes (chapter 8) I added a scaffold for a class under test
To use this:
```
npm install
npm test
```The tests are in the spec folder, classes_spec.js and functions_spec.js. The units under test are functions.js, and classes.js.
[Edit here](https://diy-pwa.dev/~/gh/rhildred/jasmineclasstests)