Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
});
});