📄 bugs.spec.ts
/home/palash/git/site/node_modules/peerjs-js-binarypack/__test__/bugs.spec.ts
Language: ts • Lines: 16
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);
		});
	});
});