ray-template/__test__/element/autoPrefixStyle.spec.ts
2024-03-23 11:25:28 +08:00

20 lines
475 B
TypeScript

import { autoPrefixStyle } from '../../src/utils/element'
describe('autoPrefixStyle', () => {
it('should be defined', () => {
expect(autoPrefixStyle).toBeDefined()
})
it('should complete css prefix', () => {
const result = autoPrefixStyle('transform')
expect(result).toEqual({
webkitTransform: 'transform',
mozTransform: 'transform',
msTransform: 'transform',
oTransform: 'transform',
transform: 'transform',
})
})
})