UNPKG
v-uikit
Version:
latest (1.0.4)
1.0.4
1.0.3
1.0.2
1.0.0
基于 UIKit 和 Vue2 开发的界面套件
github.com/DotNetAge/vue-ui
DotNetAge/vue-ui
v-uikit
/
test
/
unit
/
specs
/
UkButton.spec.js
14 lines
(12 loc)
•
308 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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
(
'保存'
) }) })