remove the test file

This commit is contained in:
uinstinct 2025-06-13 22:46:48 +05:30
parent 9720dcb9a2
commit 0d66c60381

View file

@ -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() });
}