[Pkg-javascript-commits] [node-detective] 08/119: failing test for require("events").EventEmitter

Bastien Roucariès rouca at moszumanska.debian.org
Wed Sep 6 09:44:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-detective.

commit 9356da0d7b7ce850d397f934049d2b2646e77e38
Author: James Halliday <mail at substack.net>
Date:   Sun Jun 19 17:17:12 2011 -0700

    failing test for require("events").EventEmitter
---
 test/files/strings.js | 7 ++++---
 test/strings.js       | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/files/strings.js b/test/files/strings.js
index 62e5cf6..14a7dae 100644
--- a/test/files/strings.js
+++ b/test/files/strings.js
@@ -1,3 +1,4 @@
-require('a');
-require('b');
-require('c');
+var a = require('a');
+var b = require('b');
+var c = require('c');
+var EventEmitter = require('events').EventEmitter;
diff --git a/test/strings.js b/test/strings.js
index 8dcddc8..5a1400d 100644
--- a/test/strings.js
+++ b/test/strings.js
@@ -4,5 +4,5 @@ var fs = require('fs');
 var src = fs.readFileSync(__dirname + '/files/strings.js');
 
 exports.single = function () {
-    assert.deepEqual(detective(src), [ 'a', 'b', 'c' ]);
+    assert.deepEqual(detective(src), [ 'a', 'b', 'c', 'events' ]);
 };

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-detective.git



More information about the Pkg-javascript-commits mailing list