feat: add home page
This commit is contained in:
0
src/app/pages/home/home.html
Normal file
0
src/app/pages/home/home.html
Normal file
31
src/app/pages/home/home.spec.ts
Normal file
31
src/app/pages/home/home.spec.ts
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||||
|
|
||||||
|
import { Home } from './home';
|
||||||
|
import { Sqlite } from '../../services/sqlite';
|
||||||
|
import { provideTranslateService } from '@ngx-translate/core';
|
||||||
|
import { BottomNavigationBar } from '../../components/bottom-navigation-bar/bottom-navigation-bar';
|
||||||
|
|
||||||
|
describe('Home', () => {
|
||||||
|
let component: Home;
|
||||||
|
let fixture: ComponentFixture<Home>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
TestBed.overrideComponent(BottomNavigationBar, {
|
||||||
|
set: {template: ``}
|
||||||
|
});
|
||||||
|
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [Home],
|
||||||
|
providers: [{ provide: Sqlite, useValue: {} }, provideTranslateService({})],
|
||||||
|
}).compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(Home);
|
||||||
|
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
await fixture.whenStable();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
||||||
11
src/app/pages/home/home.ts
Normal file
11
src/app/pages/home/home.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'app-home',
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './home.html',
|
||||||
|
styles: ``,
|
||||||
|
})
|
||||||
|
export class Home {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user