From cd6a31a72a5b953fc6dd8ff0b4de9ddf4c2c5536 Mon Sep 17 00:00:00 2001 From: Paul Lewis Date: Thu, 14 Jul 2016 11:10:47 +0100 Subject: [PATCH] Adds extra test --- lighthouse-core/test/audits/cache-start-url.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lighthouse-core/test/audits/cache-start-url.js b/lighthouse-core/test/audits/cache-start-url.js index b875a9290f67..1817274d0944 100644 --- a/lighthouse-core/test/audits/cache-start-url.js +++ b/lighthouse-core/test/audits/cache-start-url.js @@ -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*/ @@ -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); + }); });