[Pkg-javascript-commits] [node-detective] 52/119: failing test for module-level return
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:44:34 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 b0a307420b0582b8d9de0d09fb409f71891e096e
Author: James Halliday <mail at substack.net>
Date: Wed Apr 17 13:22:06 2013 -0700
failing test for module-level return
---
test/return.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/test/return.js b/test/return.js
new file mode 100644
index 0000000..c2da016
--- /dev/null
+++ b/test/return.js
@@ -0,0 +1,9 @@
+var test = require('tap').test;
+var detective = require('../');
+var fs = require('fs');
+var src = [ 'require("a")\nreturn' ];
+
+test('return', function (t) {
+ t.plan(1);
+ t.deepEqual(detective(src), [ 'a' ]);
+});
--
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