Fix linting errors.

This commit is contained in:
Aleksander Helgaker 2019-08-25 13:20:50 +02:00
parent 488841cf47
commit fabb799f93
3 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,8 @@ import styles from './Layout.module.scss';
type Props = { type Props = {
children: ReactNode, children: ReactNode,
title: string, title: string,
description?: string description?: string,
socialImage? :string
}; };
const Layout = ({ children, title, description, socialImage }: Props) => { const Layout = ({ children, title, description, socialImage }: Props) => {

View File

@ -4,6 +4,7 @@ import renderer from 'react-test-renderer';
import { useStaticQuery, StaticQuery } from 'gatsby'; import { useStaticQuery, StaticQuery } from 'gatsby';
import siteMetadata from '../../../jest/__fixtures__/site-metadata'; import siteMetadata from '../../../jest/__fixtures__/site-metadata';
import Layout from './Layout'; import Layout from './Layout';
import type { RenderCallback } from '../../types';
describe('Layout', () => { describe('Layout', () => {
const props = { const props = {

View File

@ -34,6 +34,7 @@ export type Node = {
category?: string, category?: string,
tags?: string[], tags?: string[],
title: string, title: string,
socialImage?: string
}, },
html: string, html: string,
id: string id: string