| 1 | import assert from "assert"; |
| 2 | import { Hub } from "../lib/index.js"; |
| 3 | |
| 4 | describe("hub", function () { |
| 5 | it("default buildError should return TypeError", function () { |
| 6 | const hub = new Hub(); |
| 7 | const msg = "test_msg"; |
| 8 | assert.deepEqual(hub.buildError(null, msg), new TypeError(msg)); |
| 9 | }); |
| 10 | }); |