We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a306912 commit 111ff8fCopy full SHA for 111ff8f
packages/varlet-ui/src/result/__tests__/index.spec.js
@@ -37,8 +37,8 @@ describe('test result component props', () => {
37
})
38
39
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)')
+ expect(style).toMatch(/width: calc\((100px \* 0\.9|90px)\)/)
+ expect(style).toMatch(/height: calc\((100px \* 0\.9|90px)\)/)
42
43
wrapper.unmount()
44
0 commit comments