Skip to content

Commit

Permalink
test(styles): Add tests for styles/basics/utils
Browse files Browse the repository at this point in the history
  • Loading branch information
ruedap committed Jul 24, 2020
1 parent 284befa commit c585d34
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions styles/basics/__snapshots__/utils.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`StyledBasicUtils should be matched snapshot 1`] = `null`;
11 changes: 11 additions & 0 deletions styles/basics/utils.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { StyledBasicUtils } from './utils'
import 'jest-styled-components'
import renderer from 'react-test-renderer'
import { renderWithTheme } from '@/tests/helpers'

describe('StyledBasicUtils', () => {
it('should be matched snapshot', () => {
const actual = renderWithTheme(<StyledBasicUtils />).toJSON()
expect(actual).toMatchSnapshot()
})
})

0 comments on commit c585d34

Please sign in to comment.