UNPKG
hae
Version:
alpha (0.8.0-alpha.0)
beta (1.0.1)
latest (1.0.29)
1.0.29
1.0.28
1.0.27
1.0.26
1.0.25
1.0.24
1.0.23
1.0.22
1.0.21
1.0.20
1.0.19
1.0.18
1.0.17
1.0.16
1.0.15
1.0.14
1.0.13
1.0.12
1.0.11
1.0.11-beta
1.0.1
1.0.0
0.8.0-alpha.0
Mobile web UI based on Vux
hae
/
src
/
components
/
x-button
/
test.js
12 lines
(9 loc)
•
251 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
Comp
from
'./index.vue'
import
{ mount }
from
'vue-test-utils'
import
{ expect }
from
'chai'
describe
(
'XButton'
,
() =>
{
it
(
'basic'
,
() =>
{
const
wrapper =
mount
(
Comp
)
expect
(wrapper.
name
()).
to
.
equal
(
'x-button'
) }) })