Skip to content

Commit

Permalink
refactor(src,test): directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
akameco committed Jan 29, 2019
1 parent 533952d commit cb77712
Show file tree
Hide file tree
Showing 46 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as React from 'react'
import renderer from 'react-test-renderer'
import 'jest-styled-components'
import { Child, StyledChangeDots } from '../styles'
import { Child, StyledChangeDots } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON()
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as React from 'react'
import renderer from 'react-test-renderer'
import 'jest-styled-components'
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as React from 'react'
import renderer from 'react-test-renderer'
import 'jest-styled-components'
import { Child, StyledCircle } from '../styles'
import { Child, StyledCircle } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as React from 'react'
import renderer from 'react-test-renderer'
import 'jest-styled-components'
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import * as React from 'react'
import renderer from 'react-test-renderer'
import 'jest-styled-components'
import { Child, StyledCubeGrid } from '../styles'
import { Child, StyledCubeGrid } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import { Child, StyledDoubleBounce } from '../styles'
import { Child, StyledDoubleBounce } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import { Child, StyledForldingCircle } from '../styles'
import { Child, StyledForldingCircle } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import { Child, StyledFoldingCube } from '../styles'
import { Child, StyledFoldingCube } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON()
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import StyledPulse from '../styles'
import StyledPulse from './styles'

test('render without props', () => {
const tree = renderer.create(<StyledPulse size={40} color={'#333'} />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import StyledRotaingPlain from '../styles'
import StyledRotaingPlain from './styles'

test('render without props', () => {
const tree = renderer.create(<StyledRotaingPlain size={40} color={'#333'} />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import Comp from '..'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import { Child, StyledThreeBounce } from '../styles'
import { Child, StyledThreeBounce } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON();
Expand Down
9 changes: 9 additions & 0 deletions src/WanderingCubes/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
expect(tree).toMatchSnapshot()
})
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import { Child, StyledWanderingCubes } from '../styles'
import { Child, StyledWanderingCubes } from './styles'

test('render Child', () => {
const tree = renderer.create(<Child />).toJSON()
Expand Down
9 changes: 0 additions & 9 deletions src/WanderingCubes/tests/index.test.js

This file was deleted.

9 changes: 9 additions & 0 deletions src/WaveLoading/index.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer'
import Comp from '.'

test('render without props', () => {
const tree = renderer.create(<Comp />).toJSON()
expect(tree).toMatchSnapshot()
})
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @flow
import * as React from 'react'
import renderer from 'react-test-renderer';
import { Rect, StyledWave } from '../styles'
import { Rect, StyledWave } from './styles'

test('render Child', () => {
const tree = renderer.create(<Rect />).toJSON()
Expand Down
9 changes: 0 additions & 9 deletions src/WaveLoading/tests/index.test.js

This file was deleted.

0 comments on commit cb77712

Please sign in to comment.