diff --git a/core/__tests__/Cartesian.js b/core/__tests__/Cartesian.js index 6beae216..df4cf0ba 100644 --- a/core/__tests__/Cartesian.js +++ b/core/__tests__/Cartesian.js @@ -1,5 +1,5 @@ import React from 'react' -import styled from 'styled-components' +import styled from 'nano-style' import { render } from 'react-testing-library' import { color, space, fontSize } from 'styled-system' @@ -12,11 +12,11 @@ const buttonProps = { backgroundColor: ['pink', 'tomato', 'purple'] } -const Button = styled.a` - ${color} - ${fontSize} - ${space} -` +const Button = styled('a')( + color, + fontSize, + space, +) test('Cartesian renders all examples', () => { const { container } = render() diff --git a/core/__tests__/Colorable.js b/core/__tests__/Colorable.js index 31d552be..a0a3a796 100644 --- a/core/__tests__/Colorable.js +++ b/core/__tests__/Colorable.js @@ -1,5 +1,5 @@ import React from 'react' -import styled from 'styled-components' +import styled from 'nano-style' import { render } from 'react-testing-library' import { color } from 'styled-system' @@ -7,9 +7,7 @@ import { Colorable } from '../src' const colors = ['black', 'white', 'pink', 'tomato', 'purple'] -const Button = styled.a` - ${color} -` +const Button = styled('a')(color) test('Colorable returns all possible colors', () => { const { container } = render( diff --git a/core/__tests__/Matrix.js b/core/__tests__/Matrix.js index 2303f77a..39ba7bfa 100644 --- a/core/__tests__/Matrix.js +++ b/core/__tests__/Matrix.js @@ -1,9 +1,10 @@ import React from 'react' import { render } from 'react-testing-library' -import { Donut } from 'rebass' - +import styled from 'nano-style' import { Matrix } from '../src' +const Donut = styled('progress')(props => ({ color: props.color })) + test('Matrix renders all examples', () => { const { container } = render( Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + Hello, world! + `; diff --git a/core/__tests__/__snapshots__/Colorable.js.snap b/core/__tests__/__snapshots__/Colorable.js.snap index 17da5aee..2ac90416 100644 --- a/core/__tests__/__snapshots__/Colorable.js.snap +++ b/core/__tests__/__snapshots__/Colorable.js.snap @@ -4,133 +4,213 @@ exports[`Colorable returns all possible colors 1`] = `
Beep + Beep + Beep + Beep +
Beep + Beep + Beep + Beep +
Beep + Beep + Beep + Beep +
Beep + Beep + Beep + Beep +
Beep + Beep + Beep + Beep +
`; diff --git a/core/__tests__/__snapshots__/Matrix.js.snap b/core/__tests__/__snapshots__/Matrix.js.snap index 1fc53ff4..c6538595 100644 --- a/core/__tests__/__snapshots__/Matrix.js.snap +++ b/core/__tests__/__snapshots__/Matrix.js.snap @@ -9,35 +9,14 @@ exports[`Matrix renders all examples 1`] = ` class="nano1d47vpu" w="512" > - - - - + /> +