Swap-Aggregator-Subgraph/node_modules/fs-jetpack/spec/log.spec.ts
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

17 lines
513 B
TypeScript

import * as util from "util";
import { expect } from "chai";
import * as jetpack from "..";
if (util.inspect.custom !== undefined) {
// Test for https://github.com/szwacz/fs-jetpack/issues/29
// Feature `util.inspect.custom` which made fixing this possible was
// introduced in node v6.6.0, hence this test is runned conditionally.
describe("console.log", () => {
it("can be printed by console.log", () => {
expect(() => {
console.log(jetpack);
}).not.to.throw();
});
});
}