MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/actions/showGlossary.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import { setupAsyncMocks } from '../testUtilities/testUtilities';
import * as actions from './showGlossary';

const { mockStore } = setupAsyncMocks();

describe('showGlossary actions', () => {
  it('can call the toggleGlossary function with show = true', () => {
    const store = mockStore({ shouldShowGlossary: false });
    store.dispatch(actions.toggleGlossary(true));
  });

  it('can call the toggleGlossary function with show = false', () => {
    const store = mockStore({ shouldShowGlossary: false });
    store.dispatch(actions.toggleGlossary(false));
  });
});