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

describe.skip(ꞌPlugin Behaviourꞌ)   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
dl 0
loc 17
rs 9.4285
nop 0
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
})