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

feat(reporter): return one result of each type instead of zero when r… #604

Merged
merged 1 commit into from
Nov 6, 2017

Conversation

dylanb
Copy link
Contributor

@dylanb dylanb commented Nov 6, 2017

…esultTypes is used

Fixes #603

assert.isUndefined(resultObject.incomplete);
assert.isUndefined(resultObject.inapplicable);
assert.equal(resultObject.violations[0].nodes.length, 2);
resultObject = helpers.processAggregate(results, { resultTypes: ['passes'] });
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the second call to processAggregate here? Is that what happens when it gets called as a result of an analysis?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's just a second test to make sure it's not just 'violations', but also that it works for 'passes'.

@WilcoFiers WilcoFiers merged commit 216a83b into develop Nov 6, 2017
@dylanb dylanb deleted the limit-findings branch March 8, 2018 19:00
mrtnvh pushed a commit to mrtnvh/axe-core that referenced this pull request Nov 24, 2023
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.

3 participants