Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it(`respects the millis configuration option`, async () => {
singleSpa.setMountMaxTime(5, false, 1000);
await controlledParcelActions(
parcel => parcel.mountPromise,
"mount-0",
0,
3
);
expect(consoleErrSpy).not.toHaveBeenCalled();
await controlledParcelActions(
parcel => parcel.mountPromise,
"mount-1",
0,
10
);
expectError(
it(`respects warningMillis configuration option`, async () => {
singleSpa.setMountMaxTime(15, false, 5);
await controlledParcelActions(
parcel => parcel.mountPromise,
"mount-2",
0,
3
);
expect(consoleWarnSpy).not.toHaveBeenCalled();
await controlledParcelActions(
parcel => parcel.mountPromise,
"mount-3",
0,
10
);
expectWarning(
afterEach(() => {
singleSpa.setMountMaxTime(5000, false, 1000);
});