Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Wendell committed Feb 2, 2019
1 parent 16fb6f6 commit 0b2c7d2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions components/empty/nz-empty.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { By } from '@angular/platform-browser';

import { NzI18nService } from '../i18n';
import en_US from '../i18n/languages/en_US';
import zh_CN from '../i18n/languages/zh_CN';
import { NzListModule } from '../list';

import { NzEmbedEmptyComponent } from './nz-embed-empty.component';
Expand Down Expand Up @@ -120,8 +119,6 @@ describe('nz-empty', () => {
testBed.get(NzI18nService).setLocale(en_US);
fixture.detectChanges();
expect(contentEl.innerText.trim()).toBe('No Data');

testBed.get(NzI18nService).setLocale(zh_CN);
});
});

Expand Down
3 changes: 1 addition & 2 deletions components/table/nz-table.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ describe('nz-table', () => {
expect(table.nativeElement.querySelector('.ant-table-placeholder').innerText.trim()).toBe('暂无数据');
injector.get(NzI18nService).setLocale(en_US);
fixture.detectChanges();
// TODO: deal with i18n test with a unified way later
expect(table.nativeElement.querySelector('.ant-table-placeholder').innerText.trim()).toBe('暂无数据');
expect(table.nativeElement.querySelector('.ant-table-placeholder').innerText.trim()).toBe('No Data');
});
});
describe('scroll nz-table', () => {
Expand Down

0 comments on commit 0b2c7d2

Please sign in to comment.