Skip to content

Commit 111ff8f

Browse files
committed
test(result): tolerate image size formatting
1 parent a306912 commit 111ff8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/varlet-ui/src/result/__tests__/index.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ describe('test result component props', () => {
3737
})
3838

3939
const style = wrapper.find('.var-result__empty').attributes('style')
40-
expect(style).toContain('width: calc(100px * 0.9)')
41-
expect(style).toContain('height: calc(100px * 0.9)')
40+
expect(style).toMatch(/width: calc\((100px \* 0\.9|90px)\)/)
41+
expect(style).toMatch(/height: calc\((100px \* 0\.9|90px)\)/)
4242

4343
wrapper.unmount()
4444
})

0 commit comments

Comments
 (0)