Skip to content

sutara79/demo-mocha-phantomjs-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

demo-mocha-phantomjs-core

Build Status

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

> demo-mocha-phantomjs-core@0.0.1 test
> phantomjs ./node_modules/mocha-phantomjs-core/mocha-phantomjs-core.js test/index.html

  jquery.set-year.js
    ✓ int_year should be above 2000
    ✓ length of int_year should be 4

  2 passing (9ms)

Dependencies

About

My practice to use mocha-phantomjs-core

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published