From d34148d3bc529e3731053fd3f5a76efce405cdfa Mon Sep 17 00:00:00 2001 From: Robson Oliveira dos Santos Date: Mon, 30 Dec 2024 02:35:39 +0930 Subject: [PATCH] refactor(repo): remove unused logs --- apps/spie-ui-e2e/src/e2e/updater.cy.ts | 8 ++------ .../src/app/components/plotter/plotter.component.ts | 4 ++-- apps/spie-ui/src/app/utils/message-parser.spec.ts | 2 -- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/apps/spie-ui-e2e/src/e2e/updater.cy.ts b/apps/spie-ui-e2e/src/e2e/updater.cy.ts index c250c67..51a158f 100644 --- a/apps/spie-ui-e2e/src/e2e/updater.cy.ts +++ b/apps/spie-ui-e2e/src/e2e/updater.cy.ts @@ -26,9 +26,7 @@ describe('Send routine', () => { win.onAutoUpdaterEventTrigger(mockEvent); }); - cy.get('ion-toast') - .should('have.attr', 'color', 'danger') - .then(console.log); + cy.get('ion-toast').should('have.attr', 'color', 'danger'); cy.get('ion-toast') .shadow() @@ -251,9 +249,7 @@ describe('Send routine', () => { win.onAutoUpdaterEventTrigger(mockEvent); }); - cy.get('ion-toast') - .should('have.attr', 'color', 'danger') - .then(console.log); + cy.get('ion-toast').should('have.attr', 'color', 'danger'); cy.get('ion-toast') .shadow() .find('.toast-header') diff --git a/apps/spie-ui/src/app/components/plotter/plotter.component.ts b/apps/spie-ui/src/app/components/plotter/plotter.component.ts index 77763b1..26515f0 100644 --- a/apps/spie-ui/src/app/components/plotter/plotter.component.ts +++ b/apps/spie-ui/src/app/components/plotter/plotter.component.ts @@ -122,13 +122,13 @@ export class PlotterComponent { ); if (newSeries.length === 0) { - console.warn('Empty series returned'); + // console.warn('Empty series returned'); return; } // Update series with the correct amount of variables if (this.series().length !== newSeries.length) { - console.warn('Number of variables has changed'); + // console.warn('Number of variables has changed'); this.series.set(newSeries); return; } diff --git a/apps/spie-ui/src/app/utils/message-parser.spec.ts b/apps/spie-ui/src/app/utils/message-parser.spec.ts index 070910f..e0159f8 100644 --- a/apps/spie-ui/src/app/utils/message-parser.spec.ts +++ b/apps/spie-ui/src/app/utils/message-parser.spec.ts @@ -153,7 +153,6 @@ describe('PlotterComponent', () => { const parsedMessages = messages.map((message) => { return MessageParser.parse(message, useSampleCount); }); - // console.log(JSON.stringify(parsedMessages)); expect(parsedMessages).toEqual(assertion); }); @@ -196,7 +195,6 @@ describe('PlotterComponent', () => { const parsedMessages = messages.map((message) => { return MessageParser.parse(message, useSampleCount); }); - // console.log(JSON.stringify(parsedMessages)); expect(parsedMessages).toEqual(assertion); });