blob: 4184ab1af6ec65285eb0d2710920c30d7dd64cf7 (
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);
});
|