bdd-wrappers
Advanced tools
Comparing version 0.0.3 to 0.0.4
/** | ||
* bdd-wrappers.js - https://github.com/podefr/bdd-wrappers | ||
* Copyright(c) 2013 Olivier Scherrer <pode.fr@gmail.com> | ||
* Copyright(c) 2013-2014 Olivier Scherrer <pode.fr@gmail.com> | ||
* MIT Licensed | ||
@@ -8,2 +8,4 @@ */ | ||
var _global = Function('return this')(); | ||
function wrap(name, step) { | ||
@@ -15,7 +17,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); | ||
_global.GIVEN = wrap("GIVEN ", describe); | ||
_global.WHEN = wrap("WHEN ", describe); | ||
_global.AND = wrap("AND ", describe); | ||
_global.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 fashion", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"homepage": "https://github.com/podefr/bdd-wrappers", | ||
@@ -6,0 +6,0 @@ "licenses": [{ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4826
16