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.

19 lines (11 loc) 398 B
'use strict'; var grunt = require('grunt'); module.exports = { comments: function(test) { test.expect(2); var markup = grunt.file.read('tmp/htmlComments/htmlComments.html'); test.ok(markup.match(/standard\.[a-z0-9]{16}\.css/), 'testing stylesheet'); test.ok(markup.match(/standard\.[a-z0-9]{16}\.js/), 'testing javascript'); test.done(); } };