convex
Version:
Client for the Convex Cloud
15 lines (11 loc) • 345 B
text/typescript
/**
* @vitest-environment custom-vitest-environment.ts
*/
import { test, expect } from "vitest";
import { Long } from "../long.js";
import { longToU64, u64ToLong } from "./protocol.js";
test("Long serialization", async () => {
expect(Long.fromNumber(89234097497)).toEqual(
u64ToLong(longToU64(Long.fromNumber(89234097497))),
);
});