2023-08-04 08:30:48 -04:00
|
|
|
// deno-lint-ignore-file no-undef
|
2024-01-01 14:58:21 -05:00
|
|
|
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
2023-08-04 08:30:48 -04:00
|
|
|
|
|
|
|
import repl from "node:repl";
|
2023-12-01 21:20:06 -05:00
|
|
|
import { assert } from "../../../test_util/std/assert/mod.ts";
|
2023-08-04 08:30:48 -04:00
|
|
|
|
|
|
|
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");
|
|
|
|
},
|
|
|
|
});
|