UNPKG

@safejs/serializer

Version:

Serializer is a superset of JSON that includes recursive objects, dates, regular expressions, functions and others which you also can expand by yourself

12 lines (9 loc) 307 B
import { symbolSerializer } from "./symbol"; describe("Symbol", () => { it("should determine", () => { expect(symbolSerializer.determine(Symbol())).toBeTruthy(); }); it("should serialize", () => { expect(symbolSerializer.serialize(Symbol())).toBe(null); }); });