Skip to content

Commit 6401a9e

Browse files
author
刘欢
committed
test: update snap
1 parent 17be1af commit 6401a9e

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/components/button/tests/__snapshots__/button.test.tsx.snap

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

3-
exports[`Button should apply custom prefixCls 1`] = `
3+
exports[`Button should apply custom prefixCls(ConfigProvider) 1`] = `
4+
<div>
5+
<button
6+
class="config-prefix-button config-prefix-button-default config-prefix-button-shape-default"
7+
type="button"
8+
>
9+
<span>
10+
按钮
11+
</span>
12+
</button>
13+
</div>
14+
`;
15+
16+
exports[`Button should apply custom prefixCls(component) 1`] = `
417
<div>
518
<button
619
class="component-prefix component-prefix-primary component-prefix-block component-prefix-large component-prefix-shape-default"

src/components/button/tests/button.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ describe('Button', () => {
220220
})
221221
})
222222

223-
test('should apply custom prefixCls', () => {
223+
test('should apply custom prefixCls(ConfigProvider)', () => {
224224
const { container } = render(
225225
<ConfigProvider prefixCls='config-prefix'>
226226
<Button>按钮</Button>
@@ -230,7 +230,7 @@ describe('Button', () => {
230230
expect(container).toMatchSnapshot()
231231
})
232232

233-
test('should apply custom prefixCls', () => {
233+
test('should apply custom prefixCls(component)', () => {
234234
const { container } = render(
235235
<ConfigProvider prefixCls='config-prefix'>
236236
<Button block color='primary' size='large' prefixCls='component-prefix'>

src/components/config-provider/tests/__snapshots__/config-provider.test.tsx.snap

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

3-
exports[`ConfigProvider should apply custom prefixCls 1`] = `
4-
<div>
5-
<button
6-
class="config-prefix-button config-prefix-button-default config-prefix-button-shape-default"
7-
type="button"
8-
>
9-
<span>
10-
按钮
11-
</span>
12-
</button>
13-
</div>
14-
`;
15-
163
exports[`ConfigProvider should display the text as ar-SA 1`] = `
174
<div>
185
<div

0 commit comments

Comments
 (0)