Skip to content

Commit

Permalink
fix error from running test:coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wusamzong committed Nov 28, 2023
1 parent 023e8cd commit 8e7780b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 8 additions & 0 deletions src/app/components/nodes-view/nodes-view.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ import { MatPaginatorModule } from '@angular/material/paginator';
import { MatDividerModule } from '@angular/material/divider';
import { MatSortModule } from '@angular/material/sort';
import { MatSelectModule } from '@angular/material/select';
import { MatFormFieldModule } from '@angular/material/form-field';
import { MatInputModule } from '@angular/material/input';
import { ReactiveFormsModule } from '@angular/forms';

describe('NodesViewComponent', () => {
let component: NodesViewComponent;
Expand All @@ -55,6 +58,11 @@ describe('NodesViewComponent', () => {
});

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [NodesViewComponent],
imports: [MatFormFieldModule, MatInputModule, ReactiveFormsModule],
})
.compileComponents();
fixture = TestBed.createComponent(NodesViewComponent);
component = fixture.componentInstance;
fixture.detectChanges();
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/nodes-view/nodes-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
* limitations under the License.
*/

import { Attribute, Component, OnInit, ViewChild } from '@angular/core';
import { Component, OnInit, ViewChild } from '@angular/core';
import { MatPaginator } from '@angular/material/paginator';
import { MatSelectChange } from '@angular/material/select';
import { MatSort } from '@angular/material/sort';
import { MatTableDataSource } from '@angular/material/table';
import { NgxSpinnerService } from 'ngx-spinner';
import { finalize, flatMap } from 'rxjs/operators';
import { finalize } from 'rxjs/operators';

import { SchedulerService } from '@app/services/scheduler/scheduler.service';
import { NodeInfo } from '@app/models/node-info.model';
Expand Down
5 changes: 0 additions & 5 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,6 @@ body {
color: #666;
}

strong {
font-weight: 700;
color: #333;
}

p {
margin: 10px 0;
}
Expand Down

0 comments on commit 8e7780b

Please sign in to comment.