Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Jan 9, 2024
1 parent 29810cf commit 2c78528
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions ui/src/app/shared/error/error-alert.component.spec.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ComponentFixture, TestBed } from '@angular/core/testing'

import { ErrorAlertComponent } from './error-alert.component';
import { ErrorAlertComponent } from './error-alert.component'
import { ErrorService } from '../service/error.service'
import { AppModule } from 'src/app/app.module'

describe('ErrorAlertComponent', () => {
let component: ErrorAlertComponent;
let fixture: ComponentFixture<ErrorAlertComponent>;
let component: ErrorAlertComponent
let fixture: ComponentFixture<ErrorAlertComponent>

beforeEach(() => {
TestBed.configureTestingModule({
declarations: [ErrorAlertComponent]
});
fixture = TestBed.createComponent(ErrorAlertComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
imports: [AppModule],
declarations: [ErrorAlertComponent],
})
fixture = TestBed.createComponent(ErrorAlertComponent)
component = fixture.componentInstance
fixture.detectChanges()
})

it('should create', () => {
expect(component).toBeTruthy();
});
});
expect(component).toBeTruthy()
})
})

0 comments on commit 2c78528

Please sign in to comment.