UNPKG

513 BPlain TextView Raw
1import * as util from "util";
2import { expect } from "chai";
3import * as jetpack from "..";
4
5if (util.inspect.custom !== undefined) {
6 // Test for https://github.com/szwacz/fs-jetpack/issues/29
7 // Feature `util.inspect.custom` which made fixing this possible was
8 // introduced in node v6.6.0, hence this test is runned conditionally.
9 describe("console.log", () => {
10 it("can be printed by console.log", () => {
11 expect(() => {
12 console.log(jetpack);
13 }).not.to.throw();
14 });
15 });
16}