Skip to content

Commit

Permalink
Move @import rules in test to be first
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Mar 28, 2020
1 parent 78afccd commit 2d95e2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions packages/react/__tests__/__snapshots__/global.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,25 @@ exports[`basic 1`] = `
data-emotion="css-global"
>
html{background-color:hotpink;}
@import url('something.com/file.css');
</style>
<style
data-emotion="css-global"
>
h1{-webkit-animation:animation-ocj8pk 1s;animation:animation-ocj8pk 1s;}
html{background-color:hotpink;}
</style>
<style
data-emotion="css-global"
>
@font-face{font-family:some-name;}
h1{-webkit-animation:animation-ocj8pk 1s;animation:animation-ocj8pk 1s;}
</style>
<style
data-emotion="css-global"
>
@import url('something.com/file.css');
@font-face{font-family:some-name;}
</style>
</head>
`;
Expand Down
6 changes: 3 additions & 3 deletions packages/react/__tests__/at-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ test('basic', () => {
<div css={{ color: 'hotpink' }} />
<Global
styles={css`
@import url('https://some-url');
h1 {
color: hotpink;
}
@import url('https://some-url');
`}
/>
</React.Fragment>,
// $FlowFixMe
</React.Fragment>, // $FlowFixMe
document.getElementById('root')
)
expect(document.head).toMatchSnapshot()
Expand Down
8 changes: 4 additions & 4 deletions packages/react/__tests__/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ test('basic', () => {
<CacheProvider value={createCache({ key: 'css' })}>
<Global
styles={[
css`
@import url('something.com/file.css');
`,
{
html: {
backgroundColor: 'hotpink'
Expand All @@ -34,10 +37,7 @@ test('basic', () => {
'@font-face': {
fontFamily: 'some-name'
}
},
css`
@import url('something.com/file.css');
`
}
]}
/>
</CacheProvider>,
Expand Down

0 comments on commit 2d95e2c

Please sign in to comment.