Skip to content

Commit 5a51baf

Browse files
Adds extra test covering --batch and --output used together.
1 parent 6f9c9f9 commit 5a51baf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

test/binary-test.js

+16
Original file line numberDiff line numberDiff line change
@@ -803,4 +803,20 @@ vows.describe('cleancss')
803803
}
804804
})
805805
})
806+
.addBatch({
807+
'batch processing with output given': binaryContext('-b -o ./test ./test/fixtures/partials/one.css ./test/fixtures/partials/five.css', {
808+
'does not produce any errors': function (error) {
809+
assert.equal(error, '');
810+
},
811+
'creates two separate minified files': function () {
812+
assert.isTrue(fs.existsSync('test/fixtures/partials/one-min.css'));
813+
assert.isFalse(fs.existsSync('test/fixtures/partials/two-min.css'));
814+
assert.isTrue(fs.existsSync('test/fixtures/partials/five-min.css'));
815+
},
816+
'teardown': function () {
817+
deleteFile('test/fixtures/partials/one-min.css');
818+
deleteFile('test/fixtures/partials/five-min.css');
819+
}
820+
})
821+
})
806822
.export(module);

0 commit comments

Comments
 (0)