We write unit tests for all functions in FxSVG.
Unit test file name is name.spec.js
.
The test file is in the same directory where the function file(name.index.js
) is.
When you run tests,
- run
npm run test:server
- go to
http://localhost:8080/test