Skip to content

Commit

Permalink
Cannot trust isSymbolic in dest
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Oct 23, 2017
1 parent 0ffe347 commit 8f8958b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/dest-symlinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ var miss = require('mississippi');

var vfs = require('../');

var LINK_MODE = require('../lib/constants').LINK_MODE;

var cleanup = require('./utils/cleanup');
var isWindows = require('./utils/is-windows');
var always = require('./utils/always');
Expand Down Expand Up @@ -133,6 +135,8 @@ describe('.dest() with symlinks', function() {
function assert(files) {
expect(files.length).toEqual(1);
expect(files[0].isSymbolic()).toEqual(true);
// We can't trust isSymbolic() because stat.isSymbolicLink() was mocked
expect(files[0].stat.mode).toEqual(LINK_MODE);
}

pipe([
Expand Down

0 comments on commit 8f8958b

Please sign in to comment.