Skip to content

Commit 1182554

Browse files
committed
Return promisse in plugin to use in tests e2e
1 parent ba348bd commit 1182554

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: src/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,5 @@ export default function install (Vue, options) {
1818
}
1919
})
2020

21-
Vue.nextTick(() => {
22-
return checkAndReport(document)
23-
})
21+
return Vue.nextTick().then(() => checkAndReport(document))
2422
}

Diff for: src/utils.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export function checkAndReport (node) {
4040
}
4141
deferred.resolve()
4242
})
43+
return deferred.promise
4344
}
4445

4546
function createDeferred () {

0 commit comments

Comments
 (0)