-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tests(font-size): assert on source #9413
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -238,7 +238,7 @@ describe('SEO: Font size audit', () => { | |
expect(auditResult.notApplicable).toBe(true); | ||
}); | ||
|
||
describe('attributes source location', () => { | ||
describe('attributes style source', () => { | ||
async function runFontSizeAuditWithSingleFailingStyle(style, nodeProperties) { | ||
const artifacts = { | ||
URL: {finalUrl: 'http://www.example.com'}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reuse There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
|
@@ -264,6 +264,7 @@ describe('SEO: Font size audit', () => { | |
attributes: ['class', 'my-p'], | ||
}); | ||
|
||
expect(auditResult.details.items[0].source).toBe('http://www.example.com'); | ||
expect(auditResult.details.items[0].selector).toMatchObject({ | ||
type: 'node', | ||
selector: '#my-parent', | ||
|
@@ -280,6 +281,7 @@ describe('SEO: Font size audit', () => { | |
attributes: ['size', '10px'], | ||
}); | ||
|
||
expect(auditResult.details.items[0].source).toBe('http://www.example.com'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's also funny because the whole reason I recommended There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
expect(auditResult.details.items[0].selector).toMatchObject({ | ||
type: 'node', | ||
selector: '#my-parent', | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
attributes style source
are all nouns so.... wbattributes source of style
? still all nouns but BAM a preposition tooThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha love it!