Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickhulce committed May 25, 2018
1 parent f8f9776 commit 2a3375b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,12 @@ describe('Byte efficiency base audit', () => {
let settings = {throttlingMethod: 'simulate', throttling: modestThrottling};
let result = await MockAudit.audit(artifacts, {settings});
// expect modest savings
assert.equal(result.rawValue, 1480);
assert.equal(result.rawValue, 1630);

settings = {throttlingMethod: 'simulate', throttling: ultraSlowThrottling};
result = await MockAudit.audit(artifacts, {settings});
// expect lots of savings
assert.equal(result.rawValue, 22350);
assert.equal(result.rawValue, 22440);
});

it('should allow overriding of computeWasteWithTTIGraph', async () => {
Expand Down Expand Up @@ -252,7 +252,7 @@ describe('Byte efficiency base audit', () => {
const result = await MockAudit.audit(artifacts, {settings});
const resultTti = await MockJustTTIAudit.audit(artifacts, {settings});
// expect more savings from default
assert.equal(result.rawValue, 1480);
assert.equal(resultTti.rawValue, 800);
assert.equal(result.rawValue, 1630);
assert.equal(resultTti.rawValue, 950);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ function request(opts) {
transferSize: opts.transferSize || 1000,
parsedURL: {scheme, securityOrigin: () => url},
_timing: opts.timing,
priority: () => 'Medium',
}, opts);
}

Expand Down

0 comments on commit 2a3375b

Please sign in to comment.