Improve 404 navigation and styling

This commit is contained in:
shamoon
2023-08-08 23:59:13 -07:00
parent f6dadd8c82
commit 9291c98189
16 changed files with 160 additions and 74 deletions

View File

@@ -1,5 +1,7 @@
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
@@ -7,7 +9,7 @@ describe('NotFoundComponent', () => {
beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [NotFoundComponent],
declarations: [NotFoundComponent, LogoComponent],
}).compileComponents()
fixture = TestBed.createComponent(NotFoundComponent)
@@ -18,6 +20,7 @@ describe('NotFoundComponent', () => {
it('should create component', () => {
expect(component).toBeTruthy()
expect(fixture.nativeElement.textContent).toContain('404 Not Found')
expect(fixture.nativeElement.textContent).toContain('Not Found')
expect(fixture.debugElement.queryAll(By.css('a'))).toHaveLength(1)
})
})