Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Commit

Permalink
Normalize paths in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fatfisz authored and zkat committed May 17, 2016
1 parent 540e0e6 commit 8c916d4
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -5,3 +5,5 @@ node_js:
- '0.12'
- '4'
- '5'
- '6'
script: "npm test"
4 changes: 3 additions & 1 deletion test/ignore-most.js
@@ -1,5 +1,6 @@
// ignore most things
var IgnoreFile = require("../")
, path = require('path')

// set the ignores just for this test
var c = require("./common.js")
Expand All @@ -14,7 +15,8 @@ var expected =
, "/c/b/a/cba"
, "/c"
, "/c/b"
, "/c/b/a" ]
, "/c/b/a"
].map(path.normalize)

require("tap").test("basic ignore rules", function (t) {
t.pass("start")
Expand Down
4 changes: 3 additions & 1 deletion test/nested-ignores.js
@@ -1,5 +1,6 @@
// ignore most things
var IgnoreFile = require("../")
, path = require('path')

// set the ignores just for this test
var c = require("./common.js")
Expand All @@ -26,7 +27,8 @@ var expected =
, "/c/b/a/cba"
, "/c/b/a/.cba"
, "/c/b/a/abc"
, "/c/b/a/acb" ]
, "/c/b/a/acb"
].map(path.normalize)

require("tap").test("basic ignore rules", function (t) {
t.pass("start")
Expand Down
4 changes: 3 additions & 1 deletion test/read-file-order.js
@@ -1,5 +1,6 @@
var IgnoreFile = require("../")
, fs = require('fs')
, path = require('path')

// set the ignores just for this test
var c = require("./common.js")
Expand All @@ -11,7 +12,8 @@ var expected =
[ "/a"
, "/a/b"
, "/a/b/c"
, "/a/b/c/abc" ]
, "/a/b/c/abc"
].map(path.normalize)

var originalReadFile = fs.readFile
, parallelCount = 0
Expand Down
4 changes: 3 additions & 1 deletion test/unignore-child.js
@@ -1,5 +1,6 @@
// ignore most things
var IgnoreFile = require("../")
, path = require('path')

// set the ignores just for this test
var c = require("./common.js")
Expand All @@ -14,7 +15,8 @@ var expected =
, "/c/b/a/cba"
, "/c"
, "/c/b"
, "/c/b/a" ]
, "/c/b/a"
].map(path.normalize)

require("tap").test("basic ignore rules", function (t) {
t.pass("start")
Expand Down

0 comments on commit 8c916d4

Please sign in to comment.