diff options
| author | Asko Nõmm <asko@nmm.ee> | 2025-01-28 21:29:22 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nmm.ee> | 2025-01-28 21:29:22 +0200 |
| commit | 95692cf5540f1c0777ec08464ad5cc2a420406d6 (patch) | |
| tree | 2746ecd1664ae1679d019d2d697aa6a092782e76 /src/serializers/to_json.test.ts | |
| parent | 8a53d6c1870533c5020b00a509025293caa2637e (diff) | |
Improve docs, namings
Diffstat (limited to 'src/serializers/to_json.test.ts')
| -rw-r--r-- | src/serializers/to_json.test.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/serializers/to_json.test.ts b/src/serializers/to_json.test.ts index 22f7ba8..4184ab1 100644 --- a/src/serializers/to_json.test.ts +++ b/src/serializers/to_json.test.ts @@ -2,11 +2,11 @@ import FlatMatter from "../flatmatter.ts"; import ToJson from "./to_json.ts"; test("Single-level configuration", () => { - const fm = new FlatMatter( - 'a: true\nb: false\nc: 1\nd: 12.5\nf: "some string"' - ); + const fm = new FlatMatter( + 'a: true\nb: false\nc: 1\nd: 12.5\nf: "some string"' + ); - const equal = "{\"a\":true,\"b\":false,\"c\":1,\"d\":12.5,\"f\":\"some string\"}"; - - expect(fm.serialize(new ToJson())).toStrictEqual(equal); + const equal = '{"a":true,"b":false,"c":1,"d":12.5,"f":"some string"}'; + + expect(fm.serialize(new ToJson())).toStrictEqual(equal); }); |
