mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
using grunt validate for npm test, fixing random jslint errors
This commit is contained in:
parent
a3d2fb7aa9
commit
4a318e9a6a
10 changed files with 23 additions and 23 deletions
|
@ -20,12 +20,12 @@
|
||||||
// Simple bootstraping of the data model for now.
|
// Simple bootstraping of the data model for now.
|
||||||
var migration = require('../data/migration/001');
|
var migration = require('../data/migration/001');
|
||||||
|
|
||||||
migration.down().then(function() {
|
return migration.down().then(function () {
|
||||||
migration.up().then(function () {
|
return migration.up();
|
||||||
|
});
|
||||||
|
}).then(function () {
|
||||||
console.log('all done....');
|
console.log('all done....');
|
||||||
});
|
});
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
errors.throwError(toThrow);
|
errors.throwError(toThrow);
|
||||||
};
|
};
|
||||||
|
|
||||||
runThrowError.should.throw("test1");
|
runThrowError.should['throw']("test1");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("throws error strings", function () {
|
it("throws error strings", function () {
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
errors.throwError(toThrow);
|
errors.throwError(toThrow);
|
||||||
};
|
};
|
||||||
|
|
||||||
runThrowError.should.throw("test2");
|
runThrowError.should['throw']("test2");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("logs errors", function () {
|
it("logs errors", function () {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app",
|
"start": "node app",
|
||||||
"test": "mocha core/test/ghost"
|
"test": "grunt validate"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "3.1.x",
|
"express": "3.1.x",
|
||||||
|
|
Loading…
Add table
Reference in a new issue