Revert "MdYamlDoc: Add a very basic reverse implementation"

This reverts commit a8af8d795eafce8d9ed7f4be2ee2cc47d8f945b3.

This complicates everything too much.
This commit is contained in:
Vishesh Handa
2021-02-12 15:58:16 +01:00
parent 61f71fcdfe
commit d28e13908a
2 changed files with 3 additions and 55 deletions

View File

@ -188,30 +188,6 @@ foo: bar
expect(actualStr, str + '\n');
});
test('YAML at the end of the doc', () {
var str = """Alright.
---
type: Journal
created: 2017-02-15T22:41:19+01:00
foo: bar
---
""";
var serializer = MarkdownYAMLCodec(reverse: true);
var doc = serializer.decode(str);
expect(doc.body, "Alright.\n\n");
expect(doc.props.length, 3);
var actualStr = serializer.encode(doc);
expect(actualStr, str);
});
// FIXME: Add another test for yaml header at the bottom without a newline
// FIXME: Add another test for yaml header at the bottom with lots of new lines after
// FIXME: Add another test for yaml header at the bottom with lots of new lines with spaces after
test('Should not have any YamlMaps', () {
// YamlMaps cannot be sent over an isolate