node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



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"


  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request


© 2013, Robbie Marcelo. Released under the MIT License.