Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Commit

Permalink
fix(o-switch): failing test since I dropped props
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Feb 12, 2020
1 parent 2399018 commit a2ee8a3
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions projects/ng-boosted/src/lib/o-switch/switch.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a2ee8a3

Please sign in to comment.