Skip to content

Commit

Permalink
Skip UNC test in node 0.10.x, as node 0.10 doesn’t expose the platfor…
Browse files Browse the repository at this point in the history
…m specific path hooks path.posix / path.win32

context: isaacs#192 (comment)
  • Loading branch information
stefanpenner committed May 8, 2015
1 parent cadc406 commit 626e1ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/unc-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ var test = require('tap').test;
var glob = require('../');
var fs = require('fs');
var path = require('path');
var skip = false
if (/^v0\.(10|[0-9])\./.test(process.version)) {
skip = 'Does not work on Node < 0.12'
}

test('glob doesn\'t choke on UNC paths', function(t) {
test('glob doesn\'t choke on UNC paths', { skip: skip }, function(t) {
stubPlatform('win32', function(restorePlatform) {
var readdir = fs.readdir;

Expand Down

0 comments on commit 626e1ce

Please sign in to comment.