import test from "node:test" import assert from "node:assert" import { gronify } from "./ngron.mjs"; test("number", () => { const result = gronify(3) assert.strictEqual(result, `json=3`) }); test("string", () => { const result = gronify("hello") assert.strictEqual(result, `json="hello"`) }); test("empty obj", () => { const result = gronify({}) assert.strictEqual(result, `json={}`) }); test("null", () => { const result = gronify(null) assert.strictEqual(result, `json=null`) });