Clone the repository and install the developer dependencies:
git clone git://github.com/unexpectedjs/unexpected.git unexpected
cd unexpected && npm install
- lib/index.js:
The entry point for the library. - lib/Unexpected.js:
The core of the library. - lib/Assertion.js:
The class that assertions are instantiated from. - lib/utils.js:
Utility functions - lib/styles.js:
MagicPen styles for controling the output. - lib/types.js:
Type definitions for every type Unexpected understands. - lib/assertions.js:
All assertions that is included in the core library.
make test
make test-phantomjs
make test-chrome-headless
or you can run them interactively through Karma:
make test-browser
click the debug button to open the HTML runner.
make coverage
Make sure that you have commited all changes before making the release.
The following make-targets will build the production version of unexpected, commit the generated file and tag a new version using NPM.
make release patch
make release minor
make release major