Files
archived-nodemon/test/lib/events.test.js
2013-12-03 13:37:40 +00:00

21 lines
397 B
JavaScript

/*global describe:true, it: true */
var nodemon = require('../../lib/'),
assert = require('assert');
describe('nodemon events', function () {
it('should have (shims) events', function () {
assert(nodemon.on);
});
it('should allow events to fire', function (done) {
nodemon.on('foo', function () {
assert(true);
done();
});
nodemon.emit('foo');
});
});