Add tests for 1807
This commit is contained in:
parent
364aac0217
commit
a8707afa20
2 changed files with 87 additions and 1 deletions
|
@ -103,3 +103,13 @@ exports.waitForIt = function waitForIt(condition, callback) {
|
|||
if (condition()) callback();
|
||||
else setTimeout(() => waitForIt(condition, callback), 50);
|
||||
};
|
||||
|
||||
/**
|
||||
* Call a components .$nextTick in a promissified way
|
||||
* @param {Vue Component} the component to work with
|
||||
*/
|
||||
exports.promissedTick = component => {
|
||||
return new Promise((resolve, reject) => {
|
||||
component.$nextTick(resolve);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue