bdd-wrappers
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -6,2 +6,4 @@ /** | ||
*/ | ||
'use strict'; | ||
function wrap(name, step) { | ||
@@ -13,7 +15,7 @@ return function func(desc, cb) { | ||
GLOBAL.GIVEN = wrap("GIVEN ", describe); | ||
GLOBAL.WHEN = wrap("WHEN ", describe); | ||
GLOBAL.AND = wrap("AND ", describe); | ||
GLOBAL.THEN = wrap("IT ", it); | ||
this.GIVEN = wrap("GIVEN ", describe); | ||
this.WHEN = wrap("WHEN ", describe); | ||
this.AND = wrap("AND ", describe); | ||
this.THEN = wrap("IT ", it); | ||
module.exports.wrap = wrap; |
{ | ||
"name": "bdd-wrappers", | ||
"description": "BDD wrappers for jasmine and mocha describe/it to help writing tests in GIVEN WHEN THEN AND IT fashion", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "https://github.com/podefr/bdd-wrappers", | ||
@@ -6,0 +6,0 @@ "licenses": [{ |
4768
15