Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public changeMyDate() {
this.myDate.setFullYear(this.myDate.getFullYear() - 1);
this.signaler.dispatchSignal(Signals.RT_SIGNAL);
}
}
await ctx.scheduler.queueMacroTask(delta => {
ctx.container.get(ISignaler).dispatchSignal(Signals.RT_SIGNAL);
ctx.scheduler.getRenderTaskQueue().flush();
assertTextContent(host, 'span', `${Math.round(delta / 1000)} seconds ago`);
}, { delay: 3000 }).result;
});
await ctx.scheduler.queueMacroTask(delta => {
ctx.container.get(ISignaler).dispatchSignal(Signals.RT_SIGNAL);
ctx.scheduler.getRenderTaskQueue().flush();
assertTextContent(host, 'span', `${Math.round(delta / 1000)} seconds ago`);
}, { delay: 3000 }).result;
});