25 lines
703 B
JavaScript
25 lines
703 B
JavaScript
|
|
import Demo0 from './cases/demo0'
|
||
|
|
import Demo1 from './cases/demo1'
|
||
|
|
import Demo2 from './cases/demo2'
|
||
|
|
import Demo3 from './cases/demo3'
|
||
|
|
import Demo4 from './cases/demo4'
|
||
|
|
import {renderToString} from '@vue/server-test-utils'
|
||
|
|
|
||
|
|
describe('Skeleton - Demo', () => {
|
||
|
|
test(`basic`, () => {
|
||
|
|
expect(renderToString(Demo0)).toMatchSnapshot()
|
||
|
|
})
|
||
|
|
test(`withAvatar`, () => {
|
||
|
|
expect(renderToString(Demo1)).toMatchSnapshot()
|
||
|
|
})
|
||
|
|
test(`switchSkeleton`, () => {
|
||
|
|
expect(renderToString(Demo2)).toMatchSnapshot()
|
||
|
|
})
|
||
|
|
test(`defaultSkeleton`, () => {
|
||
|
|
expect(renderToString(Demo3)).toMatchSnapshot()
|
||
|
|
})
|
||
|
|
test(`combineSkeleton`, () => {
|
||
|
|
expect(renderToString(Demo4)).toMatchSnapshot()
|
||
|
|
})
|
||
|
|
})
|