[Pkg-javascript-commits] [node-mocks-http] 260/296: Fixed response events example
Thorsten Alteholz
alteholz at moszumanska.debian.org
Mon Feb 8 18:13:43 UTC 2016
This is an automated email from the git hooks/post-receive script.
alteholz pushed a commit to branch master
in repository node-mocks-http.
commit 0aabaee081da8cb5e19f78090660e28fadeb70a3
Author: Antoine Pultier <a.pultier at gmail.com>
Date: Thu Sep 10 12:39:37 2015 +0200
Fixed response events example
---
README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index fc6c2b1..25eb8f2 100644
--- a/README.md
+++ b/README.md
@@ -120,11 +120,11 @@ wish to test your event handlers you will need to bring your own event emitter.
```js
var httpMocks = require('node-mocks-http');
var res = httpMocks.createResponse({
- EventEmitter: require('events').EventEmitter;
+ eventEmitter: require('events').EventEmitter
});
// ...
- it('should do something', funciton(done) {
+ it('should do something', function(done) {
res.on('end', function() {
assert.equal(...);
done();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mocks-http.git
More information about the Pkg-javascript-commits
mailing list