MetaPhase-Consulting/State-TalentMAP

View on GitHub
src/reducers/userProfilePublic/userProfilePublic.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import * as reducers from './userProfilePublic';

describe('reducers', () => {
  it('can set reducer USER_PROFILE_PUBLIC_HAS_ERRORED', () => {
    expect(reducers.userProfilePublicHasErrored(false, { type: 'USER_PROFILE_PUBLIC_HAS_ERRORED', hasErrored: true })).toBe(true);
  });

  it('can set reducer USER_PROFILE_PUBLIC_IS_LOADING', () => {
    expect(reducers.userProfilePublicIsLoading(false, { type: 'USER_PROFILE_PUBLIC_IS_LOADING', isLoading: true })).toBe(true);
  });

  it('can set reducer USER_PROFILE_PUBLIC_FETCH_DATA_SUCCESS', () => {
    expect(reducers.userProfilePublic({}, { type: 'USER_PROFILE_PUBLIC_FETCH_DATA_SUCCESS', userProfile: true })).toBe(true);
  });
});