Skip to content

Commit

Permalink
Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Sep 29, 2017
1 parent d46fb4b commit f9db70a
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions lighthouse-cli/test/smokehouse/redirects/expectations.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,20 @@
* Expected Lighthouse audit values for redirects tests
*/
const cacheBuster = Number(new Date());

module.exports = [
{
initialUrl: `http://localhost:10200/online-only.html?cb=${cacheBuster}&delay=500&redirect=%2Foffline-only.html%3Fcb=${cacheBuster}%26delay=500%26redirect%3D%2Fredirects-final.html`,
url: 'http://localhost:10200/redirects-final.html',
audits: {
'redirects': {
score: 2,
score: false,
rawValue: '>=1000',
details: {
items: {
length: 2,
},
},
},
},
},
Expand All @@ -25,8 +31,13 @@ module.exports = [
url: 'http://localhost:10200/redirects-final.html',
audits: {
'redirects': {
score: 1,
score: true,
rawValue: '>=500',
details: {
items: {
length: 1,
},
},
},
},
},
Expand Down

0 comments on commit f9db70a

Please sign in to comment.