Skip to content

Commit

Permalink
fix(list): set default size when input is empty (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil147 authored and GitHub Enterprise committed Oct 26, 2021
1 parent e0c808f commit 85f18f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions projects/ng-aquila/src/list/list.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe('NxListComponent', () => {
it('creates the List', waitForAsync(() => {
createTestComponent(BasicList);
expect(listInstance).toBeTruthy();
expect(listInstance.type).toBe('normal');
}));

it('creates full modifier class from a correct keyword', waitForAsync(() => {
Expand Down
2 changes: 1 addition & 1 deletion projects/ng-aquila/src/list/list.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class NxListComponent {
private _classNames: string = '';

/** @docs-private */
type: NxListSize | undefined;
type: NxListSize | undefined = DEFAULT_TYPE;

/** @docs-private */
negative: boolean = false;
Expand Down

0 comments on commit 85f18f5

Please sign in to comment.