Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('#context-menu-text', fakeAsync(() => {
genModule();
createComp();
page.to('#b').openContextMenu(1);
expect(document.querySelector('[data-type="close"]')!.textContent).toBe(zh_CN.reuseTab.close);
injector.get(DelonLocaleService).setLocale(en_US);
fixture.detectChanges();
page.to('#a').openContextMenu(1);
expect(document.querySelector('[data-type="close"]')!.textContent).toBe(en_US.reuseTab.close);
}));
});