mirror of
https://github.com/zebrajr/express.git
synced 2026-01-15 12:15:27 +00:00
Added event emitter inheritance test
This commit is contained in:
10
test/app.js
Normal file
10
test/app.js
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
var express = require('../');
|
||||
|
||||
describe('app', function(){
|
||||
it('should inherit from event emitter', function(done){
|
||||
var app = express();
|
||||
app.on('foo', done);
|
||||
app.emit('foo');
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user