[Pkg-javascript-commits] [node-detective] 44/119: failing test for	shebang lines
    Bastien Roucariès 
    rouca at moszumanska.debian.org
       
    Wed Sep  6 09:44:33 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 fd3a84e447a5482a28f7ac45d81dd62d59ea8cf7
Author: James Halliday <mail at substack.net>
Date:   Sun Feb 24 16:26:55 2013 -0800
    failing test for shebang lines
---
 test/files/shebang.js | 5 +++++
 test/shebang.js       | 9 +++++++++
 2 files changed, 14 insertions(+)
diff --git a/test/files/shebang.js b/test/files/shebang.js
new file mode 100644
index 0000000..96d2cfc
--- /dev/null
+++ b/test/files/shebang.js
@@ -0,0 +1,5 @@
+#!/usr/bin/env node
+
+var a = require('a');
+var b = require('b');
+var c = require('c');
diff --git a/test/shebang.js b/test/shebang.js
new file mode 100644
index 0000000..b662ea2
--- /dev/null
+++ b/test/shebang.js
@@ -0,0 +1,9 @@
+var test = require('tap').test;
+var detective = require('../');
+var fs = require('fs');
+var src = fs.readFileSync(__dirname + '/files/shebang.js');
+
+test('shebang', function (t) {
+    t.plan(1);
+    t.deepEqual(detective(src), [ 'a', 'b', 'c' ]);
+});
-- 
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