From a2ee8a312229f11f573fea762f885c31ae824f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Poupard?= Date: Wed, 12 Feb 2020 16:35:09 +0100 Subject: [PATCH] fix(o-switch): failing test since I dropped props --- .../src/lib/o-switch/switch.component.spec.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/projects/ng-boosted/src/lib/o-switch/switch.component.spec.ts b/projects/ng-boosted/src/lib/o-switch/switch.component.spec.ts index 8bf1af5b..8553e55c 100644 --- a/projects/ng-boosted/src/lib/o-switch/switch.component.spec.ts +++ b/projects/ng-boosted/src/lib/o-switch/switch.component.spec.ts @@ -31,22 +31,7 @@ describe('OSwitchComponent', () => { it('The value of toggled should be false', () => { expect(component.toggled).toBeFalsy(); }); - - it('The value of rounded should be false', () => { - expect(component.rounded).toBeFalsy(); - }); - - it('The value of rounded should be false', () => { - component.rounded = true; - const ataghtml: HTMLElement = fixture.debugElement.nativeElement; - fixture.detectChanges(); - expect(ataghtml.querySelector('label').getAttribute('class')).toEqual('toggle col-form-label toggle-rounded'); - }); - - it('The value of successColor should be false', () => { - expect(component.successColor).toBeFalsy(); - }); - + it('The value of id and the name of the input tag html attribute should be Input#1', () => { component.inputId = 'Input#1'; fixture.detectChanges();