Skip to content

Commit

Permalink
fix(cb2-9747): fix failing unit test (#1468)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrandonT95 authored Apr 15, 2024
1 parent e5d2de9 commit d9c602a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { provideMockStore } from '@ngrx/store/testing';
import { State, initialAppState } from '@store/index';
import { AdrTankDetailsM145ViewComponent } from '../adr-tank-details-m145-view/adr-tank-details-m145-view.component';
import { AdrNewCertificateRequiredViewComponent } from './adr-new-certificate-required-view.component';
import { SharedModule } from '@shared/shared.module';

Check failure on line 9 in src/app/forms/custom-sections/adr-new-certificate-required-view/adr-new-certificate-required-view.component.spec.ts

View workflow job for this annotation

GitHub Actions / lint (18.18.0)

`@shared/shared.module` import should occur before import of `../adr-tank-details-m145-view/adr-tank-details-m145-view.component`

describe('AdrNewCertificateRequiredViewComponent', () => {
let component: AdrNewCertificateRequiredViewComponent;
Expand All @@ -19,7 +20,8 @@ describe('AdrNewCertificateRequiredViewComponent', () => {

beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [AdrNewCertificateRequiredViewComponent],
declarations: [AdrNewCertificateRequiredViewComponent],
imports: [SharedModule],
providers: [
provideMockStore<State>({ initialState: initialAppState }),
{ provide: NG_VALUE_ACCESSOR, useExisting: AdrTankDetailsM145ViewComponent, multi: true },
Expand Down

0 comments on commit d9c602a

Please sign in to comment.