mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-20 18:34:13 +08:00
Share workspace packages between Ray Admin and the interactive docs. BREAKING CHANGE: v6 is a new major line. v5 stays on legacy/v5.
20 lines
486 B
TypeScript
20 lines
486 B
TypeScript
import { autoPrefixStyle } from '../../apps/admin/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',
|
|
})
|
|
})
|
|
})
|