1 | import * as util from "util";
|
2 | import { expect } from "chai";
|
3 | import * as jetpack from "..";
|
4 |
|
5 | if (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 | }
|