Stubbing out functions

This commit is contained in:
Nate Taylor
2019-10-23 19:42:58 -05:00
parent dec65a58da
commit 96eac8e434
7 changed files with 142 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
import setText from './results.mjs';
export function get(){
setText('A');
}
export function getCatch(){
setText('B');
}
export function chain(){
setText('C');
}
export function final(){
setText('D');
}

View File

@@ -0,0 +1,29 @@
import setText from './results.mjs';
export function timeout(){
setText('A');
}
export function interval(){
setText('B');
}
export function clearInterval(){
setText('C');
}
export function xhr(){
setText('D');
}
export function allPromises(){
setText('E');
}
export function allSettled(){
setText('F');
}
export function race(){
setText('G');
}

View File

@@ -0,0 +1,23 @@
import setText from './results.mjs';
export function get(){
setText('A');
}
export function getCatch(){
setText('B');
}
export function chain(){
setText('C');
}
export function concurrent(){
setText('D');
}
export function parallel(){
setText('E');
}