UNPKG

grunt-cache-bust-lazy-loading

Version:

Bust static assets from the cache using content hashing. It also supports lazy loading for divs and images when using class lazy.

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