grunt-cache-killer
Version:
Kill your asset cache file problems by updating their filenames and any references to them.
38 lines (26 loc) • 1.21 kB
JavaScript
;
var grunt = require('grunt');
/* Test 3 */
exports.cacheKiller = {
test_1: function (test) {
test.expect(1);
var expected = grunt.file.read('tests/functional/expected/test3/css/website-9063da07.dev.min.css');
var actual = grunt.file.read('tests/functional/actual/test3/css/website-9063da07.dev.min.css');
test.equal(actual, expected, 'File names and contents should match.');
test.done();
},
test_2: function (test) {
test.expect(1);
var expected = grunt.file.read('tests/functional/expected/test3/js/website-9d46ba1e.dev.min.js');
var actual = grunt.file.read('tests/functional/actual/test3/js/website-9d46ba1e.dev.min.js');
test.equal(actual, expected, 'File names and contents should match.');
test.done();
},
test_3: function (test) {
test.expect(1);
var expected = grunt.file.read('tests/functional/expected/test3/html/master.html');
var actual = grunt.file.read('tests/functional/actual/test3/html/master.html');
test.equal(actual, expected, 'File names and contents should match.');
test.done();
}
};