summaryrefslogtreecommitdiff
path: root/tests/unit/resources_test.ts
blob: 3c692a1a446660740b7fada03da766a4a40804f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

// deno-lint-ignore-file no-deprecated-deno-api

import { assertThrows } from "./test_util.ts";

Deno.test(function resourcesCloseBadArgs() {
  assertThrows(() => {
    Deno.close((null as unknown) as number);
  }, TypeError);
});