Skip to content

Commit

Permalink
test(ui): fix invalid declaration error
Browse files Browse the repository at this point in the history
Material components are mentioned in the wrong section

Refs #378
  • Loading branch information
aerfus committed Apr 8, 2024
1 parent 8745f1b commit ffcc6e0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ describe("ChannelMainComponent", () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [
ChannelMainComponent,
JsonComponent,
imports: [
MatDivider,
MatTabGroup,
MatTab,
MatTabHeader,
MarkdownModule.forRoot(),
],
imports: [MarkdownModule.forRoot()],
declarations: [ChannelMainComponent, JsonComponent],
providers: [
{ provide: AsyncApiService, useValue: mockedAsyncApiService },
{ provide: PublisherService, useValue: mockedPublisherService },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ describe("ChannelsComponent", () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [ChannelsComponent, MatAccordion],
imports: [MatAccordion],
declarations: [ChannelsComponent],
providers: [
{ provide: AsyncApiService, useValue: mockedAsyncApiService },
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { SchemaRangeComponent } from "../range/schema-range.component";
import { MatChipsModule } from "@angular/material/chips";
import { MarkdownModule } from "ngx-markdown";
import { Example } from "../../../models/example.model";
import { JsonComponent } from "../../json/json.component";

describe("SchemaComponent", () => {
let component: SchemaComponent;
Expand All @@ -15,7 +16,7 @@ describe("SchemaComponent", () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [SchemaComponent, SchemaRangeComponent],
declarations: [SchemaComponent, SchemaRangeComponent, JsonComponent],
imports: [MatChipsModule, MarkdownModule.forRoot()],
providers: [
{ provide: SchemaRangeComponent, useValue: mockedSchemaRangeComponent },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ describe("SchemasComponent", () => {

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [SchemasComponent, MatAccordion],
imports: [MatAccordion],
declarations: [SchemasComponent],
providers: [
{ provide: AsyncApiService, useValue: mockedAsyncApiService },
],
Expand Down

0 comments on commit ffcc6e0

Please sign in to comment.