import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { PostsComponent } from './posts.component'; describe('PostsComponent', () => { let component: PostsComponent; let fixture: ComponentFixture; beforeEach(waitForAsync(() => { TestBed.configureTestingModule({ imports: [PostsComponent], }).compileComponents(); fixture = TestBed.createComponent(PostsComponent); component = fixture.componentInstance; fixture.detectChanges(); })); it('should create', () => { expect(component).toBeTruthy(); }); });