Conditions | 1 |
Paths | 1 |
Total Lines | 21 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /** |
||
26 | function setupVue() { |
||
27 | Vue.use(Plugin) |
||
28 | |||
29 | let div = document.createElement('div') |
||
30 | div.id = 'app' |
||
31 | document.body.appendChild(div) |
||
32 | |||
33 | return new Vue({ |
||
34 | $el: '#app', |
||
35 | methods: { |
||
36 | checkAlert(){ |
||
37 | let dg = this.$dialog.alert('Simple Alert') |
||
38 | expect(dg).to.be.instanceOf(Promise) |
||
39 | }, |
||
40 | checkConfirm(){ |
||
41 | let dg = this.$dialog.confirm('Please confirm') |
||
42 | expect(dg).to.be.instanceOf(Promise) |
||
43 | } |
||
44 | } |
||
45 | }) |
||
46 | } |