Devices API for DigitalPersona Access Management API
Testing
Running tests
To run unit tests, perform one of the following steps.
- from terminal: run
npm run test
- from VS Code: menu
Terminal
>Run Task...
> [npm: test] - if you have installed the NPM Support for VS Code plugin: press
Ctrl-R, T
.
Writing tests
For unit tests, we use following the tools.
- Karma as a test runner
- Jasmine as a testing framework
- fetch-mock to mock the
fetch
API