Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() => {
expect(parcel.getStatus()).toBe(singleSpa.MOUNTED);
})
.then(() => new Promise((resolve, reject) => {
.then(() => {
expect(myApp.bootstrapWasCalled()).toBe(true);
expect(myApp.mountWasCalled()).toBe(true);
expect(myApp.unmountWasCalled()).toBe(false);
expect(singleSpa.getAppStatus('./uses-loader.app.js')).toEqual(singleSpa.MOUNTED);
})
});
.then(() => {
expect(parcel.getStatus()).toBe(singleSpa.MOUNTED);
expect(unmountPromiseHasResolved).toBe(false);
expect(parcelConfig.bootstrapCalls).toBe(1);
expect(parcelConfig.mountCalls).toBe(1);
expect(parcelConfig.unmountCalls).toBe(0);
shouldAppBeMounted = false;
return singleSpa.triggerAppChange();
})
})
.then(() => {
expect(parcel.getStatus()).toBe(singleSpa.MOUNTED);
shouldAppBeMounted = false;
return singleSpa.triggerAppChange();
})
.then(() => {
.then(() => expect(parcel.getStatus()).toBe(singleSpa.MOUNTED))
.then(() => parcel.unmount())
.then(() => {
expect(myApp.wasBootstrapped()).toEqual(true);
expect(myApp.wasMounted()).toEqual(true);
expect(singleSpa.getMountedApps()).toEqual(['./bootstrap-times-out.app.js']);
expect(singleSpa.getAppStatus('./bootstrap-times-out.app.js')).toEqual(singleSpa.MOUNTED);
expect(errs.length).toBe(0);
})
});