diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-08-04 14:30:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 14:30:48 +0200 |
commit | 8d8a89ceea9edd5c1f3519769d4c1861e232719d (patch) | |
tree | 64ec35958eef6ad83df279e075bdb490a16743cf /cli/tests/unit_node/repl_test.ts | |
parent | 5311f69bbbd169726330ddae20ce119624b8e8ca (diff) |
fix(node): repl._builtinLibs (#20046)
Ref https://github.com/denoland/deno/issues/19733
Diffstat (limited to 'cli/tests/unit_node/repl_test.ts')
-rw-r--r-- | cli/tests/unit_node/repl_test.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/tests/unit_node/repl_test.ts b/cli/tests/unit_node/repl_test.ts new file mode 100644 index 000000000..e703d69f8 --- /dev/null +++ b/cli/tests/unit_node/repl_test.ts @@ -0,0 +1,17 @@ +// deno-lint-ignore-file no-undef +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. + +import repl from "node:repl"; +import { assert } from "../../../test_util/std/testing/asserts.ts"; + +Deno.test({ + name: "repl module exports", + fn() { + assert(typeof repl.REPLServer !== "undefined"); + assert(typeof repl.start !== "undefined"); + // @ts-ignore not present in declaration files, but libraries depend on it + assert(typeof repl.builtinModules !== "undefined"); + // @ts-ignore not present in declaration files, but libraries depend on it + assert(typeof repl._builtinLibs !== "undefined"); + }, +}); |