feat: refactor AboutComponent to be standalone and include CommonModule feat: refactor BlogComponent to be standalone and include CommonModule feat: refactor ContactSidebarComponent to be standalone and include CommonModule feat: refactor ContactComponent to be standalone and include CommonModule and FormsModule feat: refactor NavbarComponent to be standalone and include CommonModule and RouterModule feat: refactor ProjectsComponent to be standalone and include CommonModule feat: refactor ResumeComponent to be standalone and include CommonModule feat: refactor AppComponent to be standalone and include necessary components feat: remove AppModule in favor of standalone components fix: update tests to include HttpClientTestingModule where necessary fix: update routing module to export appRoutes without NgModule chore: add environment configuration for production
25 lines
750 B
TypeScript
25 lines
750 B
TypeScript
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
import { HttpClientTestingModule } from '@angular/common/http/testing';
|
|
|
|
import { ContactSidebarComponent } from './contact-sidebar.component';
|
|
|
|
describe('ContactSidebarComponent', () => {
|
|
let component: ContactSidebarComponent;
|
|
let fixture: ComponentFixture<ContactSidebarComponent>;
|
|
|
|
beforeEach(async () => {
|
|
await TestBed.configureTestingModule({
|
|
imports: [ContactSidebarComponent, HttpClientTestingModule]
|
|
})
|
|
.compileComponents();
|
|
|
|
fixture = TestBed.createComponent(ContactSidebarComponent);
|
|
component = fixture.componentInstance;
|
|
fixture.detectChanges();
|
|
});
|
|
|
|
it('should create', () => {
|
|
expect(component).toBeTruthy();
|
|
});
|
|
});
|