src/actions/preferences.test.js
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));
});
});