feat(register): add register page with routing and form implementation
This commit is contained in:
19
src/app/shared/components/button/button.component.spec.ts
Normal file
19
src/app/shared/components/button/button.component.spec.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { ButtonComponent } from './button.component';
|
||||
|
||||
describe('ButtonComponent', () => {
|
||||
it('applies the borderless variant class', async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [ButtonComponent]
|
||||
}).compileComponents();
|
||||
|
||||
const fixture = TestBed.createComponent(ButtonComponent);
|
||||
fixture.componentRef.setInput('variant', 'borderless');
|
||||
fixture.detectChanges();
|
||||
|
||||
const button = fixture.nativeElement.querySelector('button') as HTMLButtonElement;
|
||||
|
||||
expect(button.classList.contains('btn-borderless')).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user