remove the test file
This commit is contained in:
parent
9720dcb9a2
commit
0d66c60381
1 changed files with 0 additions and 24 deletions
|
|
@ -1,24 +0,0 @@
|
|||
async function testPromise() {
|
||||
return new Promise((resolve) =>
|
||||
setTimeout(() => {
|
||||
console.log("done");
|
||||
resolve("done");
|
||||
}, 1),
|
||||
);
|
||||
}
|
||||
|
||||
async function check() {
|
||||
const t = testPromise();
|
||||
if (!!t) {
|
||||
console.log("there should be an error");
|
||||
}
|
||||
|
||||
const tt = (val = "str") => t;
|
||||
|
||||
await new Promise<void>(async (resolve) => {
|
||||
await tt();
|
||||
resolve();
|
||||
});
|
||||
|
||||
console.log({ foo: 42, ...tt() });
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue