mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 01:59:06 -05:00
12e700bddf
This commit fixes test runner by awaitning "Deno.runTests()" call, which ensures proper error is returned when there's an unresolved promise that's being awaited.
15 lines
222 B
JavaScript
15 lines
222 B
JavaScript
Deno.test({
|
|
name: "unresolved promise",
|
|
fn() {
|
|
return new Promise((_resolve, _reject) => {
|
|
console.log("in promise");
|
|
});
|
|
},
|
|
});
|
|
|
|
Deno.test({
|
|
name: "ok",
|
|
fn() {
|
|
console.log("ok test");
|
|
},
|
|
});
|