diff --git a/components/list/list.spec.ts b/components/list/list.spec.ts index b13e648c81e..c3f14270c0f 100644 --- a/components/list/list.spec.ts +++ b/components/list/list.spec.ts @@ -105,6 +105,13 @@ describe('list', () => { expect(dl.query(By.css('.ant-list-loading')) != null).toBe(value); }); } + + it('should be minimum area block when data is empty', () => { + context.nzLoading = true; + context.data = []; + fixture.detectChanges(); + expect(dl.query(By.css('.ant-spin-nested-loading'))).not.toBeNull(); + }); }); it('#nzDataSource', () => { diff --git a/components/list/nz-list.component.html b/components/list/nz-list.component.html index 4504c40804f..eec5880846b 100644 --- a/components/list/nz-list.component.html +++ b/components/list/nz-list.component.html @@ -9,6 +9,7 @@ {{ _header }} +