-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad684af
commit 0d90bcf
Showing
13 changed files
with
190 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
__tests__/__fixtures__/without-babel-plugin/02-jsx/code.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import g from "glamorous"; | ||
|
||
const GDot1 = props => <g.Span {...props}>Hi, I'm a Span!</g.Span>; | ||
const GDot2 = props => <g.Div css={{marginTop: 5}}/>; | ||
const GDot3 = props => <g.Div marginTop={5}/>; | ||
const GDot4 = props => <g.Div marginTop={5} css={{marginTop: 10}} marginBottom="5" onClick={handler}/>; | ||
const GDot5 = props => <g.Img width={100}/>; | ||
const GDot6 = props => <g.Span width={100}/>; | ||
const GDot7 = props => <g.Span css={redStyles} marginLeft={5}/>; | ||
const GDot8 = props => <g.Span css={redStyles} className="my-class"/>; |
29 changes: 29 additions & 0 deletions
29
__tests__/__fixtures__/without-babel-plugin/02-jsx/output.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { css, cx } from "react-emotion"; | ||
|
||
const GDot1 = props => <span {...props}>Hi, I'm a Span!</span>; | ||
|
||
const GDot2 = props => <div className={css({ | ||
marginTop: 5 | ||
})} />; | ||
|
||
const GDot3 = props => <div className={css({ | ||
marginTop: 5 | ||
})} />; | ||
|
||
const GDot4 = props => <div onClick={handler} className={css({ | ||
marginTop: 10, | ||
marginTop: 5, | ||
marginBottom: "5" | ||
})} />; | ||
|
||
const GDot5 = props => <img width={100} />; | ||
|
||
const GDot6 = props => <span className={css({ | ||
width: 100 | ||
})} />; | ||
|
||
const GDot7 = props => <span className={css({ ...redStyles, | ||
marginLeft: 5 | ||
})} />; | ||
|
||
const GDot8 = props => <span className={cx("my-class", redStyles)} />; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters