Reliable platform for JavaScript applications.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
tests
vendor
.gitignore
LICENSE
Makefile
README.md
ajax.js
class.js
dom.js
events.js
package.json
selector.js

README.md

Tests

Tests for Anchor are executed using Mocha as a test framework with Chai assertions.

Dependencies

Prior to running tests, use volo to fetch dependencies for both the module and tests from GitHub.

$ volo add
$ cd tests
$ volo add
Browser

To run tests in a browser, open runner.html:

$ open runner.html
PhantomJS

To run headless tests from a terminal using PhantomJS:

$ make test-phantomjs