Pineapple 7
Organization Metadata
- Organization Name: Pineapple 7
- Date: 2/29/2024 7:16:28 AM
-
Administrators:
- Kim Luu |
- Phi Vo |
- Phi Test003 |
- phi test0003 |
- Phi Test 004
Organization Description
abc
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HelloComponent } from './hello.component';
describe('HelloComponent', () => {
let component: HelloComponent;
let fixture: ComponentFixture<HelloComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [HelloComponent],
}).compileComponents();
fixture = TestBed.createComponent(HelloComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should render title', () => {
const compiled = fixture.nativeElement as HTMLElement;
expect(compiled.querySelector('h1')?.textContent).toContain('Hello World');
});
});