From 40b2b9c940b46cad5eb56444c362b8df7b9067e8 Mon Sep 17 00:00:00 2001 From: ShellyDCMS Date: Wed, 30 Oct 2024 06:20:02 +0200 Subject: [PATCH] remove terminalLog --- src/assertable.ts | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/assertable.ts b/src/assertable.ts index 9e0da6a..c7ddc6b 100644 --- a/src/assertable.ts +++ b/src/assertable.ts @@ -541,26 +541,6 @@ export class Assertable { */ 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.