Skip to content

Commit 44147a1

Browse files
committed
Fix tests
1 parent 416d308 commit 44147a1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/toggle/toggle.component.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { ComponentFixture, TestBed, fakeAsync, tick, async } from "@angular/core
33
import { By } from "@angular/platform-browser";
44
import { StaticIconModule } from "../icon/static-icon.module";
55

6+
import { I18nModule } from "../i18n/i18n.module";
67
import { Toggle, ToggleChange } from "./toggle.component";
78

89
describe("Toggle", () => {
@@ -14,7 +15,7 @@ describe("Toggle", () => {
1415
beforeEach(() => {
1516
TestBed.configureTestingModule({
1617
declarations: [Toggle],
17-
imports: [BrowserAnimationsModule, StaticIconModule],
18+
imports: [BrowserAnimationsModule, StaticIconModule, I18nModule],
1819
providers: []
1920
});
2021

@@ -26,6 +27,8 @@ describe("Toggle", () => {
2627
});
2728

2829
it("should work", () => {
30+
fixture.detectChanges();
31+
2932
expect(component instanceof Toggle).toBe(true);
3033
});
3134

0 commit comments

Comments
 (0)