BDD / TDD lightweight assertion framework for node
Want to see pretty graphs? Log in now!
npm install synonym-js
|3||downloads in the last week|
|12||downloads in the last month|
|Last Published By|
|Version||0.0.3 last updated 7 months ago|
Synonym is a (work-in-progress) lightweight assertion framework for node.js.
npm install -g synonym-js
$ node > var Synonym = require('./lib/assertion.js'); > var synInstance = new Synonym(); // Add a failed assertion > synInstance.isEqual('This', 'That'); // isEqual(input, expect) > synInstance.runTests(); Tests: 1 failure of 1 example Expects: "That" Got: "This" // Add a success assertion > synInstance.isEqual('This', 'This'); > synInstance.runTests(); Tests: 1 failure | 1 success out of 2 examples Expects: "That" Got: "This"
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
© 2013, Robbie Marcelo. Released under the MIT License.