Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdouges committed Aug 2, 2020
1 parent e180a48 commit 143f09c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/babel-plugin/src/__tests__/next.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ describe('babel plugin', () => {
"import { CC, CS } from '@compiled/css-in-js';
const MyDiv = React.forwardRef(({
as: C = \\"div\\",
style,
...props
}, ref) => <CC>
<CS hash={\\"1x3e11p\\"}>{[\\".cc-1x3e11p{font-size:12px}\\"]}</CS>
<C {...props} ref={ref} className={\\"cc-1x3e11p\\" + (props.className ? \\" \\" + props.className : \\"\\")} />
<CS hash=\\"1x3e11p\\">{[\\".cc-1x3e11p{font-size:12px}\\"]}</CS>
<C {...props} style={style} ref={ref} className={\\"cc-1x3e11p\\" + (props.className ? \\" \\" + props.className : \\"\\")} />
</CC>);"
`);
});
Expand All @@ -60,8 +61,8 @@ describe('babel plugin', () => {
const MyDiv = () => {
return <CC>
<CS hash={\\"1rr6d23\\"}>{[\\".cc-1rr6d23{font-size:12px}\\"]}</CS>
{<div className=\\"cc-1rr6d23\\">hello</div>}
<CS hash=\\"1rr6d23\\">{[\\".cc-1rr6d23{font-size:12px}\\"]}</CS>
{<div className=\\"cc-1rr6d23\\">hello</div>}
</CC>;
};"
`);
Expand Down

0 comments on commit 143f09c

Please sign in to comment.