UNPKG

v-uikit

Version:

基于 UIKit 和 Vue2 开发的界面套件

14 lines (12 loc) 308 B
// import UkButton from 'components/UKButton' import {getVM} from '../helpers' import _ from 'lodash' describe('UkButton', () => { it('$mount', () => { let vm = getVM(h => <uk-button icon="disk"> 保存 </uk-button> ) expect(_.trim(vm.$el.textContent)).to.eqls('保存') }) })