feat: add home page
This commit is contained in:
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();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user