Philipp Muens 93a23ccd9e Refactor tests and fix linting errors
Integration test now reads from the console instead of the file system.
2016-05-20 17:17:42 +02:00

30 lines
557 B
JavaScript

'use strict';
class Tests {
constructor() {
this.commands = {
test: {
commands: {
integration: {
usage: 'Command for integration testing.',
lifeCycleEvents: [
'logCommandsOnConsole',
],
},
},
},
};
this.hooks = {
'test:integration:logCommandsOnConsole': this.logCommandsOnConsole.bind(this),
};
}
logCommandsOnConsole() {
const output = this.commands;
console.log(JSON.stringify(output));
}
}
module.exports = Tests;