war

0.0.3 • Public • Published

WAR

Write cucumber style tests in mocha without the overhead of gherkin:

var given = require('war');
var scenario = it;

describe('widget', function(){
  scenario('user checks out', function(){
    return given('a product exists in a users basket', createProductInBasket).
           when('a user checks out', checkoutUser).
           then('the purchase is complete', verifyPurchaseComplete).
           and('the money is credit to the bank account', moneyIsInAccount)
  });
});

Versions

Current Tags

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

Version History

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

Package Sidebar

Install

npm i war

Weekly Downloads

10

Version

0.0.3

License

MIT

Last publish

Collaborators

  • dereke