[Pkg-javascript-commits] [node-syntax-error] 16/47: another run test
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:29:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-syntax-error.
commit 9e9eb99c993d5154b8ab529b38160369b1905a0d
Author: James Halliday <mail at substack.net>
Date: Mon Jul 14 19:09:27 2014 -0700
another run test
---
test/run2.js | 12 ++++++++++++
test/sources/run2.js | 1 +
2 files changed, 13 insertions(+)
diff --git a/test/run2.js b/test/run2.js
new file mode 100644
index 0000000..e43e0a0
--- /dev/null
+++ b/test/run2.js
@@ -0,0 +1,12 @@
+var test = require('tape');
+var check = require('../');
+
+var fs = require('fs');
+var file = __dirname + '/sources/run2.js';
+var src = fs.readFileSync(file);
+
+test('do not run sources (2)', function (t) {
+ t.plan(1);
+ var err = check(src, file);
+ t.notOk(err);
+});
diff --git a/test/sources/run2.js b/test/sources/run2.js
new file mode 100644
index 0000000..f301d32
--- /dev/null
+++ b/test/sources/run2.js
@@ -0,0 +1 @@
+}); process.exit(1); (function () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-syntax-error.git
More information about the Pkg-javascript-commits
mailing list