blob: 78ac4daf7d56b7982903c86e1157c0470c373ef2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { describe, expect, test } from "bun:test";
import { Hash, createHash } from "crypto";
import { Transform } from "stream";
describe("LazyHash quirks", () => {
test("hash instanceof Transform", () => {
const hash = createHash("sha256");
expect(hash instanceof Transform).toBe(true);
});
test("Hash.prototype instanceof Transform", () => {
expect(Hash.prototype instanceof Transform).toBe(true);
});
});
|