Remove serialization from domain

This commit is contained in:
Jon Staab
2026-06-18 12:03:48 -07:00
parent fe5c11b00f
commit 0a08057786
6 changed files with 69 additions and 116 deletions
@@ -61,12 +61,6 @@ describe("Profile", () => {
expect(profile.display()).toBe(displayPubkey(pubkey))
})
it("serializes to JSON", () => {
const profile = Profile.make({name: "alice"})
expect(JSON.parse(JSON.stringify(profile))).toEqual({name: "alice"})
})
it("throws on the wrong kind", () => {
expect(() => Profile.parse(makeEvent({kind: NOTE}))).toThrow()
})