Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
* lint error fix
  • Loading branch information
Kwakcena committed Jan 6, 2021
1 parent b4ea933 commit 34abbf6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/presentational/ProductDetail.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { render, fireEvent } from '@testing-library/react';
import ProductDetail from './ProductDetail';

import products from '../../../fixtures/products';
import product from '../../../fixtures/product';

describe('ProductDetail', () => {
function renderProductDetail({ product }) {
Expand All @@ -17,10 +16,11 @@ describe('ProductDetail', () => {
}

it('renders product detail', () => {
const { container } = renderProductDetail({ product });
const { title, region } = products[0];
const { container } = renderProductDetail({ product: products[0] });

expect(container).toHaveTextContent(product.title);
expect(container).toHaveTextContent(product.region);
expect(container).toHaveTextContent(title);
expect(container).toHaveTextContent(region);
});

context('without product images', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/services/api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('api', () => {

const data = await uploadProductImages({ files });

const productImages = files.map((file, _) => ({
const productImages = files.map((file) => ({
name: file.name,
imageUrl: 'MOCK_IMAGE_URL',
}));
Expand Down

0 comments on commit 34abbf6

Please sign in to comment.