synonym-js

BDD / TDD lightweight assertion framework for node

npm install synonym-js
12 downloads in the last month

Synonym.js

Synonym is a (work-in-progress) lightweight assertion framework for node.js.

npm install -g synonym-js

Example

$ 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"

Contributing

  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

Acknowledgement

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

npm loves you