From c585d341d17d740fda00a2a23cf0071106784b91 Mon Sep 17 00:00:00 2001 From: ruedap Date: Sat, 25 Jul 2020 01:00:16 +0900 Subject: [PATCH] test(styles): Add tests for styles/basics/utils --- styles/basics/__snapshots__/utils.test.tsx.snap | 3 +++ styles/basics/utils.test.tsx | 11 +++++++++++ 2 files changed, 14 insertions(+) create mode 100644 styles/basics/__snapshots__/utils.test.tsx.snap create mode 100644 styles/basics/utils.test.tsx diff --git a/styles/basics/__snapshots__/utils.test.tsx.snap b/styles/basics/__snapshots__/utils.test.tsx.snap new file mode 100644 index 00000000..9bbbf4bf --- /dev/null +++ b/styles/basics/__snapshots__/utils.test.tsx.snap @@ -0,0 +1,3 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`StyledBasicUtils should be matched snapshot 1`] = `null`; diff --git a/styles/basics/utils.test.tsx b/styles/basics/utils.test.tsx new file mode 100644 index 00000000..6de6a0c3 --- /dev/null +++ b/styles/basics/utils.test.tsx @@ -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().toJSON() + expect(actual).toMatchSnapshot() + }) +})