diff options
author | Steven Guerrero <stephenguerrero43@gmail.com> | 2020-11-19 07:23:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-19 07:23:42 -0500 |
commit | 315d889afa38e976b106a3769cab206db31d5ce8 (patch) | |
tree | b3243c90f6678cb6d2909bc9f6acceb412b21a6f /std/node/buffer_test.ts | |
parent | e3c3fc58cbc5053866928d33ffe25340c2bacc02 (diff) |
fix(std/node): correct typings for global, globalThis, window (#8363)
Diffstat (limited to 'std/node/buffer_test.ts')
-rw-r--r-- | std/node/buffer_test.ts | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/std/node/buffer_test.ts b/std/node/buffer_test.ts index a360c91ff..7fbc8f3ad 100644 --- a/std/node/buffer_test.ts +++ b/std/node/buffer_test.ts @@ -1,20 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { assert, assertEquals, assertThrows } from "../testing/asserts.ts"; +import { assertEquals, assertThrows } from "../testing/asserts.ts"; import { Buffer } from "./buffer.ts"; Deno.test({ - name: "Buffer global scope", - fn() { - // deno-lint-ignore ban-ts-comment - // @ts-expect-error - assert(window.Buffer === Buffer); - // deno-lint-ignore ban-ts-comment - // @ts-expect-error - assert(globalThis.Buffer === Buffer); - }, -}); - -Deno.test({ name: "alloc fails on negative numbers", fn() { assertThrows( |