import expectToReturnType from 'mtest/helpers/expectToReturnType';

import {
  ERROR_UNHANDLED_ERROR_OCCURRED_ACTION_TYPE,
  ERROR_ERROR_STATUS_RESET_ACTION_TYPE,
  errorReactToUnhandledError,
  errorResetErrorStatus,
} from 'mweb/common/actions/error';

describe('error actions', () => {
  describe('errorReactToUnhandledError', () => {
    expectToReturnType(
      errorReactToUnhandledError,
      ERROR_UNHANDLED_ERROR_OCCURRED_ACTION_TYPE,
    );
  });

  describe('errorResetErrorStatus', () => {
    expectToReturnType(
      errorResetErrorStatus,
      ERROR_ERROR_STATUS_RESET_ACTION_TYPE,
    );
  });
});
