Files
groceries-price-tracker/src/app/pages/home/home.spec.ts

32 lines
896 B
TypeScript

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();
});
});