Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
Cleanup Console use in misc-tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Aug 20, 2018
1 parent 132a99b commit 6e4a96b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/misc-tests.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Console } from "console"
import JSON6 from "json-6"
import Module from "module"
import SemVer from "semver"

import assert from "assert"
import console from "console"
import createNamespace from "./create-namespace.js"
import fs from "fs-extra"
import * as fsExtraNs from "fs-extra"
Expand Down Expand Up @@ -128,15 +128,12 @@ describe("miscellaneous tests", () => {
)

it("should support `console.Console`", () => {
const { Console } = console
const actual = new Console(process.stdout)

assert.ok(actual instanceof Console)
})

it("should support subclassing `console.Console`", () => {
const { Console } = console

class Sub extends Console {
constructor(...args) {
super(...args)
Expand Down

0 comments on commit 6e4a96b

Please sign in to comment.