Skip to content

Commit e0df294

Browse files
committed
add test coverage for ssr on two more syntax combos
1 parent f308f5c commit e0df294

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

test/fixtures/add-identifier-and-display-name/code.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ const WrappedComponent = styled(Inner)``
99
const WrappedComponent2 = styled.div({})
1010
const WrappedComponent3 = styled(Inner)({})
1111
const WrappedComponent4 = styled(Inner).attrs(() => ({ something: 'else' }))({})
12+
const WrappedComponent5 = styled.div.attrs(() => ({ something: 'else' }))({})
13+
const WrappedComponent6 = styled.div.attrs(() => ({ something: 'else' }))``

test/fixtures/add-identifier-and-display-name/output.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,15 @@ const WrappedComponent4 = styled(Inner).attrs(() => ({
3838
displayName: "WrappedComponent4",
3939
componentId: "sc-1cza72q-8"
4040
})({});
41+
const WrappedComponent5 = styled.div.attrs(() => ({
42+
something: 'else'
43+
})).withConfig({
44+
displayName: "WrappedComponent5",
45+
componentId: "sc-1cza72q-9"
46+
})({});
47+
const WrappedComponent6 = styled.div.attrs(() => ({
48+
something: 'else'
49+
})).withConfig({
50+
displayName: "WrappedComponent6",
51+
componentId: "sc-1cza72q-10"
52+
})``;

0 commit comments

Comments
 (0)