MetaPhase-Consulting/State-TalentMAP

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

Summary

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

const { mockStore } = setupAsyncMocks();

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

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