Skip to content

Commit 5ed5e35

Browse files
committed
Test
1 parent 4e00ce8 commit 5ed5e35

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

tests/format/jsx/template/__snapshots__/format.test.js.snap

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`styled-components.js format 1`] = `
44
====================================options=====================================
5-
parsers: ["flow"]
5+
parsers: ["babel", "typescript", "flow"]
66
printWidth: 80
77
| printWidth
88
=====================================input======================================
@@ -33,6 +33,11 @@ printWidth: 80
3333
: ""};
3434
}
3535
\`}</style>;
36+
<style jsx>{\`
37+
.class {
38+
flex-direction: column\${long_cond && long_cond && long_cond? "-reverse": ""};
39+
}
40+
\`}</style>;
3641
3742
=====================================output=====================================
3843
<style jsx>{\`
@@ -63,6 +68,11 @@ printWidth: 80
6368
};
6469
}
6570
\`}</style>;
71+
<style jsx>{\`
72+
.class {
73+
flex-direction: column\${long_cond && long_cond && long_cond ? "-reverse" : ""};
74+
}
75+
\`}</style>;
6676
6777
================================================================================
6878
`;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
runFormatTest(import.meta, ["flow"]);
1+
runFormatTest(import.meta, ["babel", "typescript", "flow"]);

tests/format/jsx/template/styled-components.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@
2525
: ""};
2626
}
2727
`}</style>;
28+
<style jsx>{`
29+
.class {
30+
flex-direction: column${long_cond && long_cond && long_cond? "-reverse": ""};
31+
}
32+
`}</style>;

0 commit comments

Comments
 (0)