MCPcopy
hub / github.com/bugy/script-server / vueTicks

Function vueTicks

web-src/tests/unit/test_utils.js:6–18  ·  view source on GitHub ↗
(count = 3)

Source from the content-addressed store, hash-verified

4import vueDirectives from '@/common/vueDirectives'
5
6export async function vueTicks(count = 3) {
7 if (count === 0) {
8 return Promise.resolve(null);
9 }
10
11 let promise = Vue.nextTick();
12 for (let i = 0; i < (count - 1); i++) {
13 promise.then(function () {
14 return Vue.nextTick();
15 });
16 }
17 return promise;
18}
19
20export async function timeout(ms) {
21 return new Promise((resolve, reject) => {

Callers 15

textfield_test.jsFile · 0.90
testValidationFunction · 0.90
combobox_test.jsFile · 0.90
makeSearchableFunction · 0.90
navigateToFunction · 0.90
TextArea_test.jsFile · 0.90
ChipList_test.jsFile · 0.90
setInputFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected