[Pkg-javascript-commits] [node-parents] 03/29: passing dirname test
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Aug 20 13:47:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-parents.
commit 6496331b889de25597ead133c8c714e41c185ad5
Author: James Halliday <mail at substack.net>
Date: Thu Jul 12 01:36:00 2012 -0700
passing dirname test
---
test/dirname.js | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/test/dirname.js b/test/dirname.js
new file mode 100644
index 0000000..464b967
--- /dev/null
+++ b/test/dirname.js
@@ -0,0 +1,14 @@
+var test = require('tap').test;
+var parents = require('../');
+
+test('dirname', function (t) {
+ var dirs = parents('/foo/bar/baz/quux');
+ t.same(dirs, [
+ '/foo/bar/baz/quux',
+ '/foo/bar/baz',
+ '/foo/bar',
+ '/foo',
+ '/',
+ ]);
+ t.end();
+});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-parents.git
More information about the Pkg-javascript-commits
mailing list