0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00

using grunt validate for npm test, fixing random jslint errors

This commit is contained in:
Tim Griesser 2013-05-26 20:15:46 -04:00
parent a3d2fb7aa9
commit 4a318e9a6a
10 changed files with 23 additions and 23 deletions

View file

@ -20,12 +20,12 @@
// Simple bootstraping of the data model for now.
var migration = require('../data/migration/001');
migration.down().then(function() {
migration.up().then(function () {
return migration.down().then(function () {
return migration.up();
});
}).then(function () {
console.log('all done....');
});
});
});
}
return instance;

View file

@ -19,7 +19,7 @@
errors.throwError(toThrow);
};
runThrowError.should.throw("test1");
runThrowError.should['throw']("test1");
});
it("throws error strings", function () {
@ -28,7 +28,7 @@
errors.throwError(toThrow);
};
runThrowError.should.throw("test2");
runThrowError.should['throw']("test2");
});
it("logs errors", function () {

View file

@ -4,7 +4,7 @@
"private": true,
"scripts": {
"start": "node app",
"test": "mocha core/test/ghost"
"test": "grunt validate"
},
"dependencies": {
"express": "3.1.x",