mwattsMFA of Front End Devs
2/10/2020 - 8:45 AM

Permission Effect Test

fullCheckCompleteContinueJoin$

   describe('fullCheckCompleteContinueJoin$', () => {

      it('should register "fullCheckCompleteContinueJoin$" that does dispatch an action', () => {

        expect(permissionEffectsMetadata.fullCheckCompleteContinueJoin$).toEqual({
          dispatch: true,
          resubscribeOnError: true,
        });

      });

      it('should dispatch a "RenderOneAppSplashScreenInitial" action', () => {

        actions$ = hot('-a', {
          a: new PushPermissionGranted(),
        });

        const expected = cold('-a', {
          a: new RenderOneAppSplashScreenInitial(),
        });

        expect(permissionEffects.fullCheckModeComplete$).toBeObservable(expected);

      });

    });