Skip to content
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

Merged
merged 4 commits into from
Jul 23, 2019
Merged

Conversation

connorjclark
Copy link
Collaborator

cont. #9400

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

feels like we need to do some virtual jumping jacks to atone for our 😈

🤸‍♂ 🤸‍♂ 🤸‍♂ 🤸‍♂ 🤸‍♂ 🤸‍♂ 🤸‍♂

@@ -280,6 +281,7 @@ describe('SEO: Font size audit', () => {
attributes: ['size', '10px'],
});

expect(auditResult.details.items[0].source).toBe('http://www.example.com');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's also funny because the whole reason I recommended toMatchObject in the first place was because you were asserting against .source and .selector separately 😆

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -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'},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reuse URL?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -238,7 +238,7 @@ describe('SEO: Font size audit', () => {
expect(auditResult.notApplicable).toBe(true);
});

describe('attributes source location', () => {
describe('attributes style source', () => {
Copy link
Collaborator Author

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.... wb attributes source of style ? still all nouns but BAM a preposition too

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

haha love it!

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM? 😬

😆

@connorjclark
Copy link
Collaborator Author

feels like we need to do some virtual jumping jacks to atone for our 😈

🤸‍♂️ 🤸‍♂️

done

Copy link
Member

@exterkamp exterkamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice job breaking out the PRs into little ones!

@connorjclark connorjclark merged commit 39b6336 into master Jul 23, 2019
@brendankenny brendankenny deleted the font-size-test-url-2 branch July 23, 2019 22:02
paulirish pushed a commit that referenced this pull request Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants