mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
27 lines
864 B
TypeScript
27 lines
864 B
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing'
|
|
import { NotFoundComponent } from './not-found.component'
|
|
import { By } from '@angular/platform-browser'
|
|
import { LogoComponent } from '../common/logo/logo.component'
|
|
|
|
describe('NotFoundComponent', () => {
|
|
let component: NotFoundComponent
|
|
let fixture: ComponentFixture<NotFoundComponent>
|
|
|
|
beforeEach(async () => {
|
|
TestBed.configureTestingModule({
|
|
declarations: [NotFoundComponent, LogoComponent],
|
|
}).compileComponents()
|
|
|
|
fixture = TestBed.createComponent(NotFoundComponent)
|
|
component = fixture.componentInstance
|
|
|
|
fixture.detectChanges()
|
|
})
|
|
|
|
it('should create component', () => {
|
|
expect(component).toBeTruthy()
|
|
expect(fixture.nativeElement.textContent).toContain('Not Found')
|
|
expect(fixture.debugElement.queryAll(By.css('a'))).toHaveLength(1)
|
|
})
|
|
})
|