Files
aza/APP/nexus-remote/node_modules/peerjs-js-binarypack/__test__/bugs.spec.ts

17 lines
442 B
TypeScript
Raw Normal View History

2026-03-25 14:14:07 +01:00
import { expect, describe, it } from "@jest/globals";
import { packAndUnpack } from "./util";
describe("Bugs", () => {
describe("Objects", () => {
it("replaces undefined with null ", async () => {
expect(packAndUnpack(undefined)).toBe(null);
});
});
describe("Numbers", () => {
it("gives back wrong value on INT64_MAX ", async () => {
expect(packAndUnpack(0x7fffffffffffffff)).not.toEqual(0x7fffffffffffffff);
});
});
});