Skip to content

Commit

Permalink
Adds extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
paullewis committed Jul 14, 2016
1 parent 7191f62 commit cd6a31a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lighthouse-core/test/audits/cache-start-url.js
Expand Up @@ -20,6 +20,7 @@ const manifestParser = require('../../lib/manifest-parser');
const Manifest = manifestParser(manifestSrc);
const CacheContents = ['https://another.example.com/', 'https://example.com/'];
const URL = 'https://example.com';
const AltURL = 'https://example.com/?utm_source=http203';

/* global describe, it*/

Expand Down Expand Up @@ -63,4 +64,12 @@ describe('Cache: start_url audit', () => {
URL
}).rawValue, true);
});

it('handles URLs with utm params', () => {
return assert.equal(Audit.audit({
Manifest,
CacheContents,
URL: AltURL
}).rawValue, true);
});
});

0 comments on commit cd6a31a

Please sign in to comment.