Skip to content

Commit

Permalink
these were terrible anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
brendankenny committed Feb 10, 2021
1 parent ad03e4a commit 2772e13
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions lighthouse-core/test/gather/gatherers/accessibility-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,34 +17,6 @@ describe('Accessibility gatherer', () => {
accessibilityGather = new AccessibilityGather();
});

it('fails if nothing is returned', () => {
return accessibilityGather.afterPass({
driver: {
executionContext: {
async evaluate() {},
},
},
}).then(
_ => assert.ok(false),
_ => assert.ok(true));
});

it('fails if result has no violations array', () => {
return accessibilityGather.afterPass({
driver: {
executionContext: {
async evaluate() {
return {
url: 'https://example.com',
};
},
},
},
}).then(
_ => assert.ok(false),
_ => assert.ok(true));
});

it('propagates error retrieving the results', () => {
const error = 'There was an error.';
return accessibilityGather.afterPass({
Expand Down

0 comments on commit 2772e13

Please sign in to comment.