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.

20 lines (12 loc) 492 B
'use strict'; var grunt = require('grunt'); module.exports = { cdnPath: function(test) { test.expect(3); var markup = grunt.file.read('tmp/cdnPath/cdnPath.html'); test.ok(markup.match(/cdnPath\.[a-z0-9]{16}\.css/), 'testing cdnPath is ignored'); test.ok(markup.match(/cdnPath\.[a-z0-9]{16}\.png/), 'testing cdnPath is ignored'); test.ok(markup.match(/cdnPath\.[a-z0-9]{16}\.js/), 'testing cdnPath is ignored'); test.done(); } };