Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
style(tests): Rename component to match file name
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Jun 14, 2020
1 parent 271be41 commit 1e393c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/Books.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import PropTypes from "prop-types";

import { BOOKS_ID, ERROR_ID, LOADING_ID } from "./constants";

const BooksList = ({ books = [], loading, error }) => {
const Books = ({ books = [], loading, error }) => {
if (error) {
return <div data-testid={ERROR_ID}>{error.message}</div>;
}
Expand All @@ -23,10 +23,10 @@ const BooksList = ({ books = [], loading, error }) => {
);
};

BooksList.propTypes = {
Books.propTypes = {
books: PropTypes.array,
loading: PropTypes.bool,
error: PropTypes.instanceOf(Error),
};

export default BooksList;
export default Books;

0 comments on commit 1e393c7

Please sign in to comment.