Skip to content

Commit 5114d21

Browse files
committed
fix tests
1 parent 3a49df7 commit 5114d21

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

src/banner/banner.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { TestBed } from "@angular/core/testing";
33
import { StaticIconModule } from "./../icon/static-icon.module";
44

55
import { Banner, BannerService } from "./banner.module";
6+
import { I18nModule } from "../i18n/i18n.module";
67

78

89
describe("Banner", () => {
@@ -11,7 +12,8 @@ describe("Banner", () => {
1112
declarations: [Banner],
1213
providers: [BannerService],
1314
imports: [
14-
StaticIconModule
15+
StaticIconModule,
16+
I18nModule
1517
]
1618
});
1719
});

src/dropdown/dropdown.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Dropdown } from "./dropdown.component";
77
import { DropdownList } from "./list/dropdown-list.component";
88
import { ListItem } from "./list-item.interface";
99
import { ScrollableList } from "./scrollable-list.directive";
10+
import { I18nModule } from "../i18n/i18n.module";
1011

1112
@Component({
1213
template: `
@@ -36,7 +37,8 @@ describe("Dropdown", () => {
3637
ScrollableList
3738
],
3839
imports: [
39-
StaticIconModule
40+
StaticIconModule,
41+
I18nModule
4042
]
4143
});
4244
});

src/modal/modal.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ModalComponent } from "./modal.component";
77
import { OverlayComponent } from "./overlay.component";
88
import { ModalService } from "./modal.service";
99
import { ModalPlaceholderService } from "./modal-placeholder.service";
10+
import { I18nModule } from "../i18n/i18n.module";
1011

1112
// snippet to add transform to style so karma doesn't die with
1213
// 'The provided animation property "transform" is not a supported CSS property for animations in karma-test-shim.js'
@@ -29,7 +30,8 @@ describe("ModalComponent", () => {
2930
TestBed.configureTestingModule({
3031
declarations: [ModalComponent, OverlayComponent],
3132
imports: [
32-
BrowserAnimationsModule
33+
BrowserAnimationsModule,
34+
I18nModule
3335
],
3436
providers: [ModalService, ModalPlaceholderService]
3537
});

src/table/table.component.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { StaticIconModule } from "./../icon/static-icon.module";
99
import { By } from "@angular/platform-browser";
1010

1111
import { NFormsModule } from "./../forms/forms.module";
12+
import { I18nModule } from "../i18n/i18n.module";
1213

1314
@Component({
1415
template: `<ibm-table [model]="tableModel"></ibm-table>`
@@ -36,7 +37,8 @@ describe("Table", () => {
3637
FormsModule,
3738
NFormsModule,
3839
DialogModule,
39-
StaticIconModule
40+
StaticIconModule,
41+
I18nModule
4042
],
4143
declarations: [
4244
Table,

0 commit comments

Comments
 (0)