[tests][xs]: updated test name and snapshot on home page.

This commit is contained in:
anuveyatsu
2020-06-12 16:45:26 +06:00
parent ebfe884b7b
commit c9d357f6f5
2 changed files with 2 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP // Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`renders snapshot homepage 1`] = ` exports[`📸 of Home page 1`] = `
<div <div
className="jsx-2293288804 container mx-auto" className="jsx-2293288804 container mx-auto"
> >

View File

@@ -3,7 +3,7 @@ import { render } from '@testing-library/react'
import renderer from 'react-test-renderer' import renderer from 'react-test-renderer'
import Index from '../../pages/index' import Index from '../../pages/index'
test('renders snapshot homepage', () => { test('📸 of Home page', () => {
const tree = renderer.create(<Index />).toJSON() const tree = renderer.create(<Index />).toJSON()
expect(tree).toMatchSnapshot() expect(tree).toMatchSnapshot()
}) })