[Pkg-javascript-commits] [node-syntax-error] 15/47: failing test that runs the code
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 26836ef3659b85254d202bb45e6edac991cd8948
Author: James Halliday <mail at substack.net>
Date: Mon Jul 14 18:42:40 2014 -0700
failing test that runs the code
---
test/run.js | 12 ++++++++++++
test/sources/run.js | 1 +
2 files changed, 13 insertions(+)
diff --git a/test/run.js b/test/run.js
new file mode 100644
index 0000000..c047954
--- /dev/null
+++ b/test/run.js
@@ -0,0 +1,12 @@
+var test = require('tape');
+var check = require('../');
+
+var fs = require('fs');
+var file = __dirname + '/sources/run.js';
+var src = fs.readFileSync(file);
+
+test('do not run sources', function (t) {
+ t.plan(1);
+ var err = check(src, file);
+ t.notOk(err);
+});
diff --git a/test/sources/run.js b/test/sources/run.js
new file mode 100644
index 0000000..6cee2e1
--- /dev/null
+++ b/test/sources/run.js
@@ -0,0 +1 @@
+process.exit(1);
--
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