Add some tests to make sure we're packaging up the npm properly

This commit is contained in:
slackersoft
2014-08-26 07:47:21 -07:00
parent 3132d98f23
commit ea57ad97cf
4 changed files with 141 additions and 36 deletions

View File

@@ -37,10 +37,13 @@ module.exports = function(grunt) {
grunt.registerTask("execSpecsInNode",
"Run Jasmine core specs in Node.js",
function() {
var exitInfo = require("shelljs").exec("node_modules/.bin/jasmine");
if (exitInfo.code !== 0) {
grunt.fail.fatal("Specs Failed", exitInfo.code);
}
var done = this.async();
require("shelljs").exec("node_modules/.bin/jasmine", function(exitCode) {
if (exitCode !== 0) {
grunt.fail.fatal("Specs Failed", exitCode);
}
done();
});
}
);