mirror of
https://github.com/denoland/deno.git
synced 2025-02-19 03:43:00 -05:00

1. Generally we should prefer to use the `log` crate. 2. I very often accidentally commit `eprintln`s. When we should use `println` or `eprintln`, it's not too bad to be a bit more verbose and ignore the lint rule.
6 lines
115 B
JavaScript
6 lines
115 B
JavaScript
Deno.test("basic test", () => {
|
|
const value = 1 + 1;
|
|
if (value !== 2) {
|
|
throw new Error("failed");
|
|
}
|
|
});
|