synonym-js

0.0.3 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i synonym-js

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • rbmrclo