Skip to content

Commit

Permalink
Fix expected values to pass the test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Sep 10, 2014
1 parent 4ea58c7 commit 4b73802
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
'use strict';

var test = require('tape');
var sep = require('path').sep;

var braceExpandJoin = require('require-main')();
var test = require('tape');

test('braceExpandJoin()', function(t) {
t.plan(8);

t.strictEqual(
braceExpandJoin('*', 'a'), '*/a',
braceExpandJoin('*', 'a'), '*' + sep + 'a',
'should join patterns like path.join().'
);

Expand All @@ -23,12 +24,12 @@ test('braceExpandJoin()', function(t) {
);

t.strictEqual(
braceExpandJoin('{a,b}', '*'), '{a/*,b/*}',
braceExpandJoin('{a,b}', '*'), '{a' + sep + '*,b' + sep + '*}',
'should join patterns considering brace expansion.'
);

t.strictEqual(
braceExpandJoin('{a,b/*/../c}', '../*'), '{*,b/*}',
braceExpandJoin('{a,b/*/../c}', '../*'), '{*,b' + sep + '*}',
'should join patterns considering brace expansion and parent directory reference.'
);

Expand Down

0 comments on commit 4b73802

Please sign in to comment.