mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 18:38:55 +00:00
9 lines
275 B
JavaScript
9 lines
275 B
JavaScript
import { it, expect } from "bun:test";
|
|
|
|
const nodeCrypto = require("node:crypto");
|
|
|
|
it("crypto.randomBytes should return a Buffer", () => {
|
|
expect(nodeCrypto.randomBytes(1) instanceof Buffer).toBe(true);
|
|
expect(Buffer.isBuffer(nodeCrypto.randomBytes(1))).toBe(true);
|
|
});
|