mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
21 lines
397 B
JavaScript
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');
|
|
});
|
|
});
|
|
|
|
|