[Pkg-javascript-commits] [node-syntax-error] 17/47: ok test
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:29:59 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 05f2390cde2455eaed7eac9072e78940e89d7ca2
Author: James Halliday <mail at substack.net>
Date: Mon Jul 14 19:51:33 2014 -0700
ok test
---
test/ok.js | 13 +++++++++++++
test/sources/ok.js | 1 +
2 files changed, 14 insertions(+)
diff --git a/test/ok.js b/test/ok.js
new file mode 100644
index 0000000..726cec5
--- /dev/null
+++ b/test/ok.js
@@ -0,0 +1,13 @@
+var test = require('tape');
+
+var fs = require('fs');
+var check = require('../');
+
+var file = __dirname + '/sources/ok.js';
+var src = fs.readFileSync(file);
+
+test(function (t) {
+ var err = check(src, file);
+ t.notOk(err);
+ t.end();
+});
diff --git a/test/sources/ok.js b/test/sources/ok.js
new file mode 100644
index 0000000..0400619
--- /dev/null
+++ b/test/sources/ok.js
@@ -0,0 +1 @@
+function f () {}
--
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