Last active
January 14, 2016 19:34
-
-
Save rianby64/eaa4c899c2e41a143b7a to your computer and use it in GitHub Desktop.
Apolog loader for Jasmine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
var apolog = require('apolog'), | |
fs = require('fs'), | |
_loadFeature = apolog.loadFeature; | |
global.feature = apolog.feature; | |
global.scenario = apolog.scenario; | |
global.background = apolog.background; | |
global.given = apolog.given; | |
global.when = apolog.when; | |
global.then = apolog.then; | |
global.step = apolog.step; | |
global.and = apolog.and; | |
global.but = apolog.but; | |
global.run = apolog.run; | |
global.loadFeature = function(feature) { | |
_loadFeature(fs.readFileSync(feature, 'utf8'), { | |
path: feature | |
}); | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment