mirror of
				https://github.com/mastermindzh/rickvanlieshout.com
				synced 2025-10-31 16:49:49 +01:00 
			
		
		
		
	improvement: flow coverage
This commit is contained in:
		| @@ -1,8 +1,13 @@ | ||||
| // @flow | ||||
| import React from 'react'; | ||||
| import moment from 'moment'; | ||||
| import styles from './Meta.module.scss'; | ||||
|  | ||||
| const Meta = ({ date }) => ( | ||||
| type Props = { | ||||
|   date: string | ||||
| }; | ||||
|  | ||||
| const Meta = ({ date }: Props) => ( | ||||
|   <div className={styles['meta']}> | ||||
|     <p className={styles['meta__date']}>Published {moment(date).format('D MMM YYYY')}</p> | ||||
|   </div> | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| // @flow | ||||
| import React from 'react'; | ||||
| import renderer from 'react-test-renderer'; | ||||
| import Meta from './Meta'; | ||||
|   | ||||
| @@ -1 +1,2 @@ | ||||
| // @flow | ||||
| export { default } from './Meta'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user