@ -1,6 +1,6 @@
{
"name": "@klenty/gunner",
"version": "0.10.0",
"version": "0.10.2",
"description": "Zero magic, fast test-runner and assertion framework. No magic globals.",
"main": "es6/index.js",
"repository": {
@ -96,7 +96,9 @@ class Gunner {
emitter.emit('test end', results);
emitter.emit('end', results);
return results;
return (options.request
? reporters[options.request].convert(results)
: results);
});
}
@ -6,6 +6,8 @@ const statusMap = {
};
const convert = x => x;
const Default = (runner, options) => {
runner.on('start', () => console.log('Started tests'));
@ -40,3 +42,4 @@ const Default = (runner, options) => {
module.exports = Default;
module.exports.convert = convert;