From d6ed03f1a7f28bfd009e8db62cf6877fc60effaf Mon Sep 17 00:00:00 2001 From: Renan Franca Date: Fri, 14 Feb 2025 12:38:01 -0300 Subject: [PATCH] fix: sonar issue to add at least one assertion to this test case --- .../unit/module/primary/landscape/LandscapeComponent.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/webapp/unit/module/primary/landscape/LandscapeComponent.spec.ts b/src/test/webapp/unit/module/primary/landscape/LandscapeComponent.spec.ts index 19730b9d0cf..b82c1762b0c 100644 --- a/src/test/webapp/unit/module/primary/landscape/LandscapeComponent.spec.ts +++ b/src/test/webapp/unit/module/primary/landscape/LandscapeComponent.spec.ts @@ -1405,8 +1405,8 @@ describe('Landscape', () => { init: true, vue: true, 'java-base': true, - 'spring-boot': false, }); + expect(wrapper.find(wrappedElement('spring-boot-module')).exists()).toBe(false); }); it('should show all modules when deselect rank', async () => { @@ -1420,8 +1420,8 @@ describe('Landscape', () => { init: true, vue: true, 'java-base': true, - 'spring-boot': true, }); + expect(wrapper.find(wrappedElement('spring-boot-module')).exists()).toBe(true); }); it('should present distinctly with minimal emphasis on dependency modules of different ranks than the selected one', async () => {