Completed
Push — master ( 111ea3...33738e )
by Ajeh
31s
created

tests/plugin/behaviour.spec.js   A

Complexity

Total Complexity 5
Complexity/F 1

Size

Lines of Code 24
Function Count 5

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 5
c 1
b 0
f 0
nc 1
mnd 0
bc 5
fnc 5
dl 0
loc 24
rs 10
bpm 1
cpm 1
noi 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A describe.skip(ꞌPlugin Behaviourꞌ) 0 21 1
1
/**
2
 * Created by Emmy on 10/8/2017.
3
 */
4
5
import Plugin from '../../src/plugin/js/index'
6
import {assert} from 'chai'
7
8
describe.skip('Plugin Behaviour', function () {
0 ignored issues
show
Bug introduced by
The variable describe seems to be never declared. If this is a global, consider adding a /** global: describe */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
9
    describe('Calling #Confirm', function () {
10
        it('"$dialog.confirm()" Should return a promise', function () {
11
            const Vue = require('vue').default
12
            Vue.use(Plugin)
13
14
            let vm = new Vue({
15
                methods: {
16
                    check(){
17
                        assert.typeOf(this.$dialog.confirm(), 'promise')
18
                    }
19
                },
20
                render(h){
21
                    return h('p', {id: 'test'}, 'test')
22
                }
23
            }).$mount()
24
25
            vm.check()
26
        })
27
    })
28
})