Commit 6ef18f81 by Adeel

CLI: Adds a test for output as argument.

parent f8edd201
...@@ -95,6 +95,21 @@ describe('cli', function() { ...@@ -95,6 +95,21 @@ describe('cli', function() {
}); });
}); });
it('should compile a scss file to custom destination', function(done) {
process.chdir(fixture('simple'));
var src = fixture('simple/index.scss');
var dest = fixture('simple/index-custom.css');
var bin = spawn(cli, [src, dest]);
bin.on('close', function() {
assert(fs.existsSync(dest));
fs.unlinkSync(dest);
process.chdir(__dirname);
done();
});
});
it('should compile with the --include-path option', function(done) { it('should compile with the --include-path option', function(done) {
var includePaths = [ var includePaths = [
'--include-path', fixture('include-path/functions'), '--include-path', fixture('include-path/functions'),
......
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