Skip to content

Commit

Permalink
Changed tests to use tabs rather than spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
fblundun committed Feb 4, 2014
1 parent 00c6c96 commit 0829b05
Showing 1 changed file with 43 additions and 40 deletions.
83 changes: 43 additions & 40 deletions test/yui_compressor_test.js
Expand Up @@ -3,44 +3,47 @@
var grunt = require('grunt');

exports.yui_compressor = {
setUp: function (done) {
// setup here if necessary
done();
},
min_simple: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/simple.min.js');
var expected = grunt.file.read('test/expected/simple.min.js');
test.equal(actual, expected, 'should minify a JavaScript file correctly.');

test.done();
},
min_w_breaks: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/w_breaks.min.js');
var expected = grunt.file.read('test/expected/w_breaks.min.js');
test.equal(actual, expected, 'should minify a JavaScript file using the line break option correctly.');

test.done();
},
cssmin_simple: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/simple.min.css');
var expected = grunt.file.read('test/expected/simple.min.css');
test.equal(actual, expected, 'should minify a CSS file correctly.');

test.done();
},
cssmin_w_breaks: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/w_breaks.min.css');
var expected = grunt.file.read('test/expected/w_breaks.min.css');
test.equal(actual, expected, 'should minify a CSS file correctly.');

test.done();
}
setUp: function (done) {
// setup here if necessary
done();
},

min_simple: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/simple.min.js');
var expected = grunt.file.read('test/expected/simple.min.js');
test.equal(actual, expected, 'should minify a JavaScript file correctly.');

test.done();
},

min_w_breaks: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/w_breaks.min.js');
var expected = grunt.file.read('test/expected/w_breaks.min.js');
test.equal(actual, expected, 'should minify a JavaScript file using the line break option correctly.');

test.done();
},
cssmin_simple: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/simple.min.css');
var expected = grunt.file.read('test/expected/simple.min.css');
test.equal(actual, expected, 'should minify a CSS file correctly.');

test.done();
},

cssmin_w_breaks: function (test) {
test.expect(1);

var actual = grunt.file.read('tmp/w_breaks.min.css');
var expected = grunt.file.read('test/expected/w_breaks.min.css');
test.equal(actual, expected, 'should minify a CSS file using the line break option correctly.');

test.done();
}
};

0 comments on commit 0829b05

Please sign in to comment.