From fddb8e96da40221e640f79ce869e027cf62c245f Mon Sep 17 00:00:00 2001 From: GoalSmashers Date: Sat, 3 Nov 2012 19:59:36 +0000 Subject: [PATCH] Added removing reset-min.css temporary file on Windows. --- test/binary-test.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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 -- 2.34.1