Skip to content

Commit be33726

Browse files
committed
test(package): adapted the specs
1 parent 658529e commit be33726

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/module/component/mat-password-strength/mat-password-strength.component.spec.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ describe('PasswordStrengthComponent', () => {
3232
expect(component.password).toBeUndefined();
3333
});
3434

35-
it('should have a primary color and strength equal to 0 when no password is provided', () => {
36-
expect(component.color).toBe(Colors.primary);
35+
it('should have a warn color and strength equal to 0 when no password is provided', () => {
36+
expect(component.color).toBe(Colors.warn);
3737
expect(component.strength).toBe(0);
3838
});
3939

@@ -47,7 +47,7 @@ describe('PasswordStrengthComponent', () => {
4747
});
4848
fixture.detectChanges();
4949
expect(calculatePasswordStrengthSpy).not.toHaveBeenCalled();
50-
expect(component.color).toBe(Colors.primary);
50+
expect(component.color).toBe(Colors.warn);
5151
});
5252

5353
it('should not calculate the strength of the password when externalError is provided', () => {
@@ -161,4 +161,6 @@ describe('PasswordStrengthComponent', () => {
161161
}
162162
});
163163
});
164+
165+
164166
});

0 commit comments

Comments
 (0)