How to use the @delon/theme.zh_CN.noticeIcon function in @delon/theme

To help you get started, we’ve selected a few @delon/theme examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ng-alain / delon / packages / abc / notice-icon / notice-icon.spec.ts View on Github external
it('#i18n', () => {
    context.popoverVisible = true;
    context.data = [{ title: 'a1', list: [] }];
    fixture.detectChanges();
    const a = document.querySelector('.notice-icon__notfound')! as HTMLElement;
    expect(a.innerText).toBe(zh_CN.noticeIcon.emptyText);
    const srv = injector.get(DelonLocaleService) as DelonLocaleService;
    srv.setLocale(en_US);
    fixture.detectChanges();
    expect(a.innerText).toBe(en_US.noticeIcon.emptyText);
  });
});