How to use the single-spa.NOT_MOUNTED function in single-spa

To help you get started, we’ve selected a few single-spa examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CanopyTax / single-spa / spec / parcels / mount-root-parcel.spec.js View on Github external
.then(() => {
        expect(parcel.getStatus()).toBe(singleSpa.NOT_MOUNTED);
      })
  });
github CanopyTax / single-spa / spec / parcels / app-mounts-parcel.spec.js View on Github external
.then(() => {
            expect(parcel.getStatus()).toBe(singleSpa.NOT_MOUNTED);
            expect(unmountPromiseHasResolved).toBe(false);

            return parcel
              .mountPromise
              .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();
              })
          })
      })
github CanopyTax / single-spa / spec / parcels / mount-root-parcel.spec.js View on Github external
      .then(() => expect(parcel.getStatus()).toBe(singleSpa.NOT_MOUNTED))
      .then(() => parcel.unmountPromise)
github CanopyTax / single-spa / spec / parcels / app-mounts-parcel.spec.js View on Github external
.then(() => {
        expect(parcel.getStatus()).toBe(singleSpa.NOT_MOUNTED);
        expect(app.unmountCalls).toBe(1);
      })
  });