Commit 41cf00d9 by dotzero

Hotfix Test for --follow option

parent e289389e
...@@ -578,14 +578,14 @@ describe('cli', function() { ...@@ -578,14 +578,14 @@ describe('cli', function() {
var src = fixture('follow/input-dir'); var src = fixture('follow/input-dir');
var dest = fixture('follow/output-dir'); var dest = fixture('follow/output-dir');
fs.mkdirSync(src) fs.mkdirSync(src);
fs.symlinkSync(path.join(path.dirname(src), 'foo'), path.join(src, 'foo'), 'dir') fs.symlinkSync(path.join(path.dirname(src), 'foo'), path.join(src, 'foo'), 'dir');
var bin = spawn(cli, [src, '--follow', '--output', dest]); var bin = spawn(cli, [src, '--follow', '--output', dest]);
bin.once('close', function() { bin.once('close', function() {
var expected = path.join(dest, 'foo/bar/index.css'); var expected = path.join(dest, 'foo/bar/index.css');
fs.unlinkSync(path.join(path.dirname(src), 'foo')); fs.unlinkSync(path.join(src, 'foo'));
fs.rmdirSync(src); fs.rmdirSync(src);
assert(fs.existsSync(expected)); assert(fs.existsSync(expected));
fs.unlinkSync(expected); fs.unlinkSync(expected);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment