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

chore: modernized rule generator #4106

Merged
merged 2 commits into from
Aug 1, 2023
Merged

chore: modernized rule generator #4106

merged 2 commits into from
Aug 1, 2023

Conversation

WilcoFiers
Copy link
Contributor

Was working on a new rule, spotted the indentation was all off. I figured that while I'm fixing that, I might as well modernise a couple things.

@WilcoFiers WilcoFiers requested a review from a team as a code owner July 28, 2023 10:59

// TODO: Replace this with real tests for this check
it('returns false when img has no alt', () => {
const args = checkSetup('<img id="target" />');
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
const args = checkSetup('<img id="target" />');
const params = checkSetup('<img id="target" />');

const vNode = queryFixture('<p id="target">Hello world</p>');
assert.isFalse(rule.matches(vNode.actualNode, vNode));
});
});
`,
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
`,
`,

@WilcoFiers WilcoFiers merged commit 758b069 into develop Aug 1, 2023
@WilcoFiers WilcoFiers deleted the rule-generator-tweaks branch August 1, 2023 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants