UNPKG

@shopgate/pwa-common

Version:

Common library for the Shopgate Connect PWA.

1 lines 544 B
import{CREATE_MODAL,REMOVE_MODAL}from"../../constants/ActionTypes";import{createModal,removeModal}from"./index";var options={some:'data'};var id='modalId';describe('Action Creators: modal',function(){describe('createModal()',function(){it('should work as expected',function(){var expected={type:CREATE_MODAL,options:options};expect(createModal(options)).toEqual(expected);});});describe('removeModal()',function(){it('should work as expected',function(){var expected={type:REMOVE_MODAL,id:id};expect(removeModal(id)).toEqual(expected);});});});