From f2719411b701c02c80904ca47a3271ef2f22144b Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Thu, 24 Nov 2011 12:10:08 -0800 Subject: [PATCH] Added event emitter inheritance test --- test/app.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/app.js diff --git a/test/app.js b/test/app.js new file mode 100644 index 00000000..2080fa90 --- /dev/null +++ b/test/app.js @@ -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'); + }) +})