Skip to content

Commit

Permalink
remove terminalLog
Browse files Browse the repository at this point in the history
  • Loading branch information
ShellyDCMS committed Oct 30, 2024
1 parent 164490a commit 40b2b9c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/assertable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -541,26 +541,6 @@ export class Assertable<T> {
*/
public shouldThrow = (value?: string | RegExp | undefined) =>
this.chainable.should("throw", value);

private terminalLog = (violations: any[]) => {
cy.task(
"log",
`${violations.length} accessibility violation${
violations.length === 1 ? "" : "s"
} ${violations.length === 1 ? "was" : "were"} detected`
);
// pluck specific keys to keep the table readable
const violationData = violations.map(
({ id, impact, description, nodes }) => ({
id,
impact,
description,
nodes: nodes.length
})
);

cy.task("table", violationData);
};
}

/** Wraps Cypress.Chainable and returns Assertable, decoupling test code form cypress 'should' assertions.
Expand Down

0 comments on commit 40b2b9c

Please sign in to comment.