mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
17 lines
513 B
TypeScript
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();
|
|
});
|
|
});
|
|
}
|