blessing-skin-server/resources/assets/tests/views/admin/Customization.test.ts
2019-06-15 17:55:18 +08:00

11 lines
315 B
TypeScript

import handler from '@/views/admin/Customization'
test('preview color', () => {
document.body.classList.add('skin-blue')
const target = document.createElement('input')
target.value = 'skin-purple'
handler({ target } as any as Event)
expect(document.body.classList.contains('skin-purple')).toBeTrue()
})