Skip to content

Commit

Permalink
test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirish committed May 14, 2018
1 parent c1359fc commit 7e2e5aa
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ describe('PerfCategoryRenderer', () => {
},
};

const fakeCategory = Object.assign({}, category, {audits: [auditWithDebug]});
const categoryDOM = renderer.render(fakeCategory, sampleResults.reportGroups);
const fakeCategory = Object.assign({}, category, {auditRefs: [auditWithDebug]});
const categoryDOM = renderer.render(fakeCategory, sampleResults.categoryGroups);
const debugEl = categoryDOM.querySelector('.lh-audit--load-opportunity .lh-debug');
assert.ok(debugEl, 'did not render debug');
assert.ok(/Yikes!!/.test(debugEl.textContent));
});

it('renders errored performance opportunities with a debug string', () => {
it('renders performance opportunities\' explanation', () => {
const auditWithDebug = {
score: 0,
group: 'load-opportunities',
Expand Down

0 comments on commit 7e2e5aa

Please sign in to comment.