Skip to content

Commit

Permalink
deWindows the tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Apr 7, 2024
1 parent b2243e8 commit 1a26dfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ function suite(moduleName) {
var testFile = path.join(os.tmpdir(), "glob-stream-test.txt");
fs.writeFileSync(testFile, "test");

var tmp = deWindows(os.tmpdir());

var expected = [
{
cwd: cwd,
Expand All @@ -393,16 +395,16 @@ function suite(moduleName) {
},
{
cwd: cwd,
base: deWindows(os.tmpdir()),
path: deWindows(os.tmpdir()) + '/glob-stream-test.txt',
base: tmp,
path: tmp + '/glob-stream-test.txt',
}
];

var paths = [
dir + '/fixtures/whatsgoingon/hey/isaidhey/whatsgoingon/test.txt',
dir + '/fixtures/test.coffee',
dir + '/fixtures/whatsgoingon/test.js',
os.tmpdir() + '/glob-stream-*.txt',
tmp + '/glob-stream-*.txt',
];

console.log(paths);
Expand Down

0 comments on commit 1a26dfb

Please sign in to comment.