https://github.com/sutara79/demo-mocha-phantomjs-core
My practice to use mocha-phantomjs-core
https://github.com/sutara79/demo-mocha-phantomjs-core
mocha phantomjs practice
Last synced: 3 months ago
JSON representation
My practice to use mocha-phantomjs-core
- Host: GitHub
- URL: https://github.com/sutara79/demo-mocha-phantomjs-core
- Owner: sutara79
- Created: 2017-05-16T10:52:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T00:06:59.000Z (almost 7 years ago)
- Last Synced: 2025-01-12T00:11:23.817Z (5 months ago)
- Topics: mocha, phantomjs, practice
- Language: HTML
- Size: 534 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# demo-mocha-phantomjs-core
[](https://travis-ci.org/sutara79/demo-mocha-phantomjs-core)
Unit testing for client side JavaScript with DOM.
**Do not use ES6(ES2015) or later.**
Otherwise testing on CLI will fail.## Demo for the testing target
https://sutara79.github.io/demo-mocha-phantomjs-core/## Testing
### Browser
https://sutara79.github.io/demo-mocha-phantomjs-core/test/index.html### CLI
```
$ npm test> [email protected] test
> phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.htmljquery.set-year.js
✓ int_year should be above 2000
✓ length of int_year should be 42 passing (9ms)
```## Dependencies
- [phantomjs-prebuilt](https://github.com/Medium/phantomjs)
- [mocha-phantomjs-core](https://github.com/nathanboktae/mocha-phantomjs-core)
- [mocha](https://github.com/mochajs/mocha)
- [power-assert](https://github.com/power-assert-js/power-assert)