diff --git a/test/dest-symlinks.js b/test/dest-symlinks.js index 9b4a4fbf..da9cec17 100644 --- a/test/dest-symlinks.js +++ b/test/dest-symlinks.js @@ -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'); @@ -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([