[Pkg-javascript-commits] [node-parents] 04/29: passing win32 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 79a3702aefaf5ea9929013a78cfca2a385edab8c
Author: James Halliday <mail at substack.net>
Date:   Thu Jul 12 01:37:06 2012 -0700

    passing win32 test
---
 test/win32.js | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/test/win32.js b/test/win32.js
new file mode 100644
index 0000000..d8c0ef8
--- /dev/null
+++ b/test/win32.js
@@ -0,0 +1,15 @@
+var test = require('tap').test;
+var parents = require('../');
+
+test('win32', function (t) {
+    var dir = 'C:\\Program Files\\Maxis\\Sim City 2000\\cities';
+    var dirs = parents(dir, { platform : 'win32' });
+    t.same(dirs, [
+        'C:\\Program Files\\Maxis\\Sim City 2000\\cities',
+        'C:\\Program Files\\Maxis\\Sim City 2000',
+        'C:\\Program Files\\Maxis',
+        'C:\\Program Files',
+        'C:',
+    ]);
+    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