Skip to content

Commit

Permalink
update button usage and fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
xelaint committed Nov 25, 2024
1 parent 9ea0f69 commit 50fc856
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { DaffLoadingIconComponent } from './loading-icon.component';
})
class WrapperComponent {
color: DaffPalette;
diameter = 60;
diameter = '60';
}

describe('@daffodil/design/loading-icon | DaffLoadingIconComponent', () => {
Expand Down Expand Up @@ -61,11 +61,11 @@ describe('@daffodil/design/loading-icon | DaffLoadingIconComponent', () => {
});

it('has a default value of 60 for the diameter', () => {
expect(component.diameter).toEqual(60);
expect(component.diameter).toEqual('60');
});

it('can take a `diameter` as input which sets max-width on the `daff-loading-icon` host', () => {
wrapper.diameter = 50;
wrapper.diameter = '50px';
fixture.detectChanges();
expect(de.nativeElement.style.maxWidth).toEqual('50px');
});
Expand Down

0 comments on commit 50fc856

Please sign in to comment.