blob: 22f7ba8f1f411339d50afac1a4eb8b0071c9f5c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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 equal = "{\"a\":true,\"b\":false,\"c\":1,\"d\":12.5,\"f\":\"some string\"}";
expect(fm.serialize(new ToJson())).toStrictEqual(equal);
});
|