MetaPhase-Consulting/State-TalentMAP

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

Summary

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

const { mockStore } = setupAsyncMocks();

describe('toast actions', () => {
  it('can call the setSortPreference function', () => {
    const store = mockStore({});
    store.dispatch(actions.setSortPreference('someKey', 'aValue'));
  });

  it('can call the darkModePreference function', () => {
    const store = mockStore({});
    store.dispatch(actions.setDarkModePreference(false));
  });
});