Something went wrong. Try again.
The format that's super! duper.dev.br
Something went wrong. Try again.
123456789101112131415161718192021import { stringify } from "..";
describe("stringify", () => { it("stringifies a basic object", () => { const data = { name: "Wireless Headphones", price: 129.99, in_stock: true, tags: ["electronics", "audio"], }; const duper_string = stringify(data); expect(duper_string).toMatchSnapshot(); });
it("stringifies nested structures", () => { const data = ["foo", { bar: ["baz", { qux: null }] }]; const duper_string = stringify(data); expect(duper_string).toMatchSnapshot(); });});