Skip to content

Commit

Permalink
Fix tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jan 30, 2016
1 parent bb2d533 commit 8f39d61
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions appveyor.yml
@@ -0,0 +1,18 @@
environment:
matrix:
- nodejs_version: "5"
- nodejs_version: "4"
- nodejs_version: "0.12"

version: "{build}"
build: off
deploy: off

install:
- ps: Install-Product node $env:nodejs_version
- npm install

test_script:
- node --version
- npm --version
- npm test
2 changes: 1 addition & 1 deletion lib/formatter.js
Expand Up @@ -72,7 +72,7 @@ module.exports = function(opts) {

function logFrom(fromValue) {
if (fromValue.charAt(0) === '<') return fromValue;
return path.relative(process.cwd(), fromValue);
return path.relative(process.cwd(), fromValue).split(path.sep).join('/');
}
};
};

0 comments on commit 8f39d61

Please sign in to comment.