Skip to content

Commit

Permalink
Correcao nos componentes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexMarquesAlves committed Dec 28, 2021
1 parent ba52497 commit 36f61c2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm run lint-staged
# npm run lint-staged

4 changes: 3 additions & 1 deletion src/components/ArticleHeader/__snapshots__/test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`<ArticleHeader /> should render heading, excerpt, cover img and meta 1`] = `
exports[
`<ArticleHeader /> should render heading, excerpt, cover img and meta 1`
] = `
.c5 {
font-size: 1.6rem;
color: #AAAAAA;
Expand Down
4 changes: 3 additions & 1 deletion src/components/ArticleMeta/__snapshots__/test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ exports[`<ArticleMeta /> should match snapshot 1`] = `
</div>
`;

exports[`<ArticleMeta /> should match snapshot with no author and categories 1`] = `
exports[
`<ArticleMeta /> should match snapshot with no author and categories 1`
] = `
.c0 {
font-size: 1.6rem;
color: #AAAAAA;
Expand Down
11 changes: 2 additions & 9 deletions src/components/Post/mock.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import { PostProps } from '.';
import { data } from '../../api/dados.json';

const {
title,
excerpt,
cover,
content,
author,
categories,
createdAt,
} = data.posts[0];
const { title, excerpt, cover, content, author, categories, createdAt } =
data.posts[0];

export default {
title,
Expand Down

0 comments on commit 36f61c2

Please sign in to comment.