Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoblee93 committed Aug 25, 2024
1 parent 4ddea7e commit aa968cf
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions libs/checkpoint/src/serde/tests/jsonplus.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ const VALUES = [
["various data types", complexValue],
] satisfies [string, unknown][];

it.each(VALUES)("should serialize and deserialize %s", async (_description, value) => {
const serde = new JsonPlusSerializer();
const [type, serialized] = serde.dumpsTyped(value);
const deserialized = await serde.loadsTyped(type, serialized);
expect(deserialized).toEqual(value);
});
it.each(VALUES)(
"should serialize and deserialize %s",
async (_description, value) => {
const serde = new JsonPlusSerializer();
const [type, serialized] = serde.dumpsTyped(value);
const deserialized = await serde.loadsTyped(type, serialized);
expect(deserialized).toEqual(value);
}
);

0 comments on commit aa968cf

Please sign in to comment.