mirror of
https://github.com/gundb/panic-server.git
synced 2026-05-07 03:00:26 -04:00
Created an event emitter instance for reporters and the test stack. Currently, the only event that fires is "begin". All tests are now named, whether by their given name or as the name "Anonymous".
15 lines
260 B
JavaScript
15 lines
260 B
JavaScript
/*jslint node: true, nomen: true*/
|
|
'use strict';
|
|
|
|
var route = require('./index');
|
|
var event = require('./events');
|
|
|
|
function bump(ctx) {
|
|
route.setup = function (req, res) {
|
|
res.status(200).json(ctx);
|
|
};
|
|
event.emit('begin', ctx);
|
|
}
|
|
|
|
module.exports = bump;
|