UNPKG

grunt-cache-bust

Version:

Bust static assets from the cache using content hashing

21 lines (13 loc) 680 B
'use strict'; var grunt = require('grunt'); module.exports = { xml: function(test) { test.expect(4); var browserConfig = grunt.file.read('tmp/xml/xml.xml'); test.ok(browserConfig.match(/assets\/mstile-70x70\.[a-z0-9]{16}\.png/), 'testing busting of an xml file'); test.ok(browserConfig.match(/assets\/mstile-150x150\.[a-z0-9]{16}\.png/), 'testing busting of an xml file'); test.ok(browserConfig.match(/assets\/mstile-310x310\.[a-z0-9]{16}\.png/), 'testing busting of an xml file'); test.ok(browserConfig.match(/assets\/mstile-310x150\.[a-z0-9]{16}\.png/), 'testing busting of an xml file'); test.done(); } };