summaryrefslogtreecommitdiff
path: root/tests/unit_node/repl_test.ts
blob: 693fdcc9eb4093f4d05eda3a1dccac97d79b3e02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// deno-lint-ignore-file no-undef
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.

import repl from "node:repl";
import { assert } from "@std/assert";

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");
  },
});