Skip to content

Commit acea045

Browse files
committed
test: update modal 单元测试
1 parent b404c6b commit acea045

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/taro-ui/test/components/modal.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ describe('Modal Snap', () => {
8484
title='标题'
8585
cancelText='取消'
8686
confirmText='确认'
87-
content='欢迎加入京东凹凸实验室\n\r欢迎加入京东凹凸实验室'
87+
content='欢迎加入京东凹凸实验室\n欢迎加入京东凹凸实验室'
8888
/>
8989
)
9090
expect(component).toMatchSnapshot()
@@ -106,7 +106,7 @@ describe('Modal Behavior ', () => {
106106
onClose={onClose}
107107
onCancel={onCancel}
108108
onConfirm={onConfirm}
109-
content='欢迎加入京东凹凸实验室\n\r欢迎加入京东凹凸实验室'
109+
content='欢迎加入京东凹凸实验室\n欢迎加入京东凹凸实验室'
110110
/>
111111
)
112112
const componentDom = findDOMNode(component, 'at-modal')
@@ -144,7 +144,7 @@ describe('Modal Behavior ', () => {
144144
closeOnClickOverlay={false}
145145
confirmText='确认'
146146
onClose={onClose}
147-
content='欢迎加入京东凹凸实验室\n\r欢迎加入京东凹凸实验室'
147+
content='欢迎加入京东凹凸实验室\n欢迎加入京东凹凸实验室'
148148
/>
149149
)
150150
const componentDom = findDOMNode(component, 'at-modal')

0 commit comments

Comments
 (0)