Skip to content

Commit

Permalink
Merge pull request #2 from fritx/fix-test-win32
Browse files Browse the repository at this point in the history
Fix test on win32
  • Loading branch information
sindresorhus committed Sep 9, 2015
2 parents 7de30c1 + fa3d843 commit a12dc61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test.js
@@ -1,9 +1,12 @@
'use strict';
var test = require('ava');
var tildify = require('./');
var path = require('path');
var osHomedir = require('os-homedir');
var home = osHomedir();

test(function (t) {
var fixture = process.cwd();
var fixture = path.resolve(home, 'tildify');
t.assert(tildify(fixture)[0] === '~');
t.assert(/tildify$/.test(tildify(fixture)));
t.assert(tildify(fixture) !== fixture);
Expand Down

0 comments on commit a12dc61

Please sign in to comment.