Ghost/core/test/ghost/helpers.js
2013-05-25 11:48:15 -05:00

22 lines
441 B
JavaScript

(function() {
"use strict";
// Use 'testing' Ghost config
process.env.NODE_ENV = 'testing';
var migrations = {
one: require("../../shared/data/migration/001")
},
helpers;
helpers = {
resetData: function () {
return migrations.one.down().then(function () {
return migrations.one.up();
});
}
};
module.exports = helpers;
}());