mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 23:24:37 +00:00
build: lint cli/tests/unit using deno lint (#6327)
This commit is contained in:
parent
36ad5e4402
commit
ffedbd79ad
8 changed files with 42 additions and 19 deletions
|
@ -608,7 +608,9 @@ unitTest(async function consoleTestStringifyPromises(): Promise<void> {
|
|||
rej(Error("Whoops"));
|
||||
});
|
||||
await rejectedPromise;
|
||||
} catch (err) {}
|
||||
} catch (err) {
|
||||
// pass
|
||||
}
|
||||
const strLines = stringify(rejectedPromise).split("\n");
|
||||
assertEquals(strLines[0], "Promise {");
|
||||
assertEquals(strLines[1], " <rejected> Error: Whoops");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue