Skip to content

Commit 34d983c

Browse files
committed
test(package): spec of mat-password-strength-info fixed
1 parent 182f5d8 commit 34d983c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

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

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,27 @@ import {async, ComponentFixture, TestBed} from '@angular/core/testing';
33
import {MatPasswordStrengthInfoComponent} from './mat-password-strength-info.component';
44
import {MatCardModule, MatIconModule} from '@angular/material';
55
import {MatPasswordStrengthComponent} from '../mat-password-strength/mat-password-strength.component';
6+
import {NoopAnimationsModule} from '@angular/platform-browser/animations';
67

78
describe('NgxMaterialPasswordStrengthInfoComponent', () => {
89
let component: MatPasswordStrengthInfoComponent;
910
let fixture: ComponentFixture<MatPasswordStrengthInfoComponent>;
1011
const passwordStrengthComponent: MatPasswordStrengthComponent = new MatPasswordStrengthComponent();
1112

13+
Object.defineProperty(window.document.body.style, 'backface-visibility', {
14+
value: () => {
15+
return {
16+
enumerable: true,
17+
configurable: true
18+
};
19+
},
20+
});
21+
1222
beforeEach(async(() => {
1323
TestBed.configureTestingModule({
14-
imports: [MatCardModule, MatIconModule],
24+
imports: [NoopAnimationsModule, MatCardModule, MatIconModule],
1525
declarations: [MatPasswordStrengthInfoComponent]
16-
})
17-
.compileComponents();
26+
}).compileComponents();
1827
}));
1928

2029
beforeEach(() => {

0 commit comments

Comments
 (0)