From: GoalSmashers Date: Sat, 3 Nov 2012 19:59:36 +0000 (+0000) Subject: Added removing reset-min.css temporary file on Windows. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=fddb8e96da40221e640f79ce869e027cf62c245f;p=clean-css.git Added removing reset-min.css temporary file on Windows. --- diff --git a/test/binary-test.js b/test/binary-test.js index 6f9129c4..8755e970 100644 --- a/test/binary-test.js +++ b/test/binary-test.js @@ -3,8 +3,8 @@ var vows = require('vows'), exec = require('child_process').exec, fs = require('fs'); -var isWindows = process.platform == 'win32', - lineBreak = isWindows ? /\r\n/g : /\n/g; +var isWindows = process.platform == 'win32'; +var lineBreak = isWindows ? /\r\n/g : /\n/g; var binaryContext = function(options, context) { context.topic = function() { @@ -85,7 +85,10 @@ exports.commandsSuite = vows.describe('binary commands').addBatch({ assert.equal(minimized, target); }, teardown: function() { - exec('rm reset-min.css'); + if (isWindows) + exec('del /q /f reset-min.css'); + else + exec('rm reset-min.css'); } }) }); \ No newline at end of file