Skip to content

Instantly share code, notes, and snippets.

@Blazing-Mike
Created September 7, 2024 12:58
Show Gist options
  • Save Blazing-Mike/53491ea65807c4ba415540a3e62a2b14 to your computer and use it in GitHub Desktop.
Save Blazing-Mike/53491ea65807c4ba415540a3e62a2b14 to your computer and use it in GitHub Desktop.
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { ButtonComponent } from './button.component';
describe('ButtonComponent', () => {
let component: ButtonComponent;
let fixture: ComponentFixture<ButtonComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ ButtonComponent ]
})
.compileComponents();
});
beforeEach(() => {
fixture = TestBed.createComponent(ButtonComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment