mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
fmt and adjust comment
This commit is contained in:
parent
27c2529c1a
commit
af3e43c318
2 changed files with 3 additions and 6 deletions
|
@ -31,6 +31,7 @@ type AmdFactory = (...args: any[]) => undefined | object;
|
|||
type AmdDefine = (deps: string[], factory: AmdFactory) => void;
|
||||
|
||||
// Uncaught exceptions are sent to window.onerror by v8worker2.
|
||||
// https://git.io/vhOsf
|
||||
window.onerror = (message, source, lineno, colno, error) => {
|
||||
// TODO Currently there is a bug in v8_source_maps.ts that causes a segfault
|
||||
// if it is used within window.onerror. To workaround we uninstall the
|
||||
|
|
8
tests.ts
8
tests.ts
|
@ -7,17 +7,14 @@
|
|||
// serving the deno project directory. Try this:
|
||||
// http-server -p 4545 --cors .
|
||||
import { test, assert, assertEqual } from "./deno_testing/testing.ts";
|
||||
import {
|
||||
readFileSync,
|
||||
writeFileSync
|
||||
} from "deno";
|
||||
import { readFileSync, writeFileSync } from "deno";
|
||||
|
||||
test(async function tests_test() {
|
||||
assert(true);
|
||||
});
|
||||
|
||||
test(async function tests_fetch() {
|
||||
const response = await fetch('http://localhost:4545/package.json');
|
||||
const response = await fetch("http://localhost:4545/package.json");
|
||||
const json = await response.json();
|
||||
assertEqual(json.name, "deno");
|
||||
});
|
||||
|
@ -46,4 +43,3 @@ test(async function tests_writeFileSync() {
|
|||
const actual = dec.decode(dataRead);
|
||||
assertEqual("Hello", actual);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue