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.