Created
October 2, 2015 18:35
-
-
Save sbilodeau/c55ffa92ccf8eb3b47fd to your computer and use it in GitHub Desktop.
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
(function (global, _it) { | |
global.it = function(title, callback) { | |
_it(title, function(done) { | |
var result = callback(); | |
if(result.then) { | |
result.then(done).catch(done.fail); | |
} | |
else { | |
done(); | |
} | |
}); | |
}; | |
})(global||window, it); |
pleblond
commented
Oct 2, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment