From 85f18f516e94282a67a0d7f7dd68e0a1e98443d6 Mon Sep 17 00:00:00 2001 From: "extern.fahrenschon_philipp@allianz.com" Date: Tue, 26 Oct 2021 13:31:02 +0200 Subject: [PATCH] fix(list): set default size when input is empty (#404) --- projects/ng-aquila/src/list/list.component.spec.ts | 1 + projects/ng-aquila/src/list/list.component.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/projects/ng-aquila/src/list/list.component.spec.ts b/projects/ng-aquila/src/list/list.component.spec.ts index 01e3a4f40..0a7c47d2a 100644 --- a/projects/ng-aquila/src/list/list.component.spec.ts +++ b/projects/ng-aquila/src/list/list.component.spec.ts @@ -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(() => { diff --git a/projects/ng-aquila/src/list/list.component.ts b/projects/ng-aquila/src/list/list.component.ts index 1f1d4aa2f..811c90d8b 100644 --- a/projects/ng-aquila/src/list/list.component.ts +++ b/projects/ng-aquila/src/list/list.component.ts @@ -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;