Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 2f5258e

Browse files
Fix typo in test file
1 parent f9ae5e5 commit 2f5258e

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

packages/chakra-ui-core/src/utils/__snapshots__/component.test.js.snap

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3+
exports[`createStyledAttrsMixin baseStyle should accept baseStyle as a function 1`] = `
4+
<DocumentFragment>
5+
.emotion-0 {
6+
background: var(--colors-blue-200);
7+
color: var(--colors-black);
8+
border: 2px solid #0045b4;
9+
}
10+
11+
<div
12+
class="emotion-0"
13+
data-chakra-component="FakeComponent"
14+
>
15+
Fake component
16+
</div>
17+
</DocumentFragment>
18+
`;
19+
20+
exports[`createStyledAttrsMixin baseStyle should accept baseStyle as a function 2`] = `
21+
<DocumentFragment>
22+
.emotion-0 {
23+
background: var(--colors-vue-200);
24+
color: var(--colors-white);
25+
border: 2px solid #7db1ff;
26+
}
27+
28+
<div
29+
class="emotion-0"
30+
data-chakra-component="FakeComponent"
31+
>
32+
Fake component
33+
</div>
34+
</DocumentFragment>
35+
`;
36+
337
exports[`createStyledAttrsMixin baseStyle should be overiden by props 1`] = `
438
<DocumentFragment>
539
.emotion-0 {

packages/chakra-ui-core/src/utils/component.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe('createStyledAttrsMixin', () => {
7575
color: colorMode === 'light' ? 'black' : 'white',
7676
border: `2px solid ${
7777
colorMode === 'light'
78-
? theme.color.blue[600]
78+
? theme.colors.blue[600]
7979
: theme.colors.blue[200]
8080
}`
8181
})

0 commit comments

Comments
 (0)