Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)