mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +08:00
YAML Serializer: Add a test which currently fails
It would be nice to preserve the order of the YAML metadata, but the YAML package does not currently support that.
This commit is contained in:
@ -31,5 +31,23 @@ main() {
|
|||||||
|
|
||||||
expect(note2, note);
|
expect(note2, note);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
test('Markdown Serializer YAML Order', () {
|
||||||
|
var str = """---
|
||||||
|
type: Journal
|
||||||
|
created: 2017-02-15T22:41:19+01:00
|
||||||
|
foo: bar
|
||||||
|
---
|
||||||
|
|
||||||
|
Alright.""";
|
||||||
|
|
||||||
|
var serializer = new MarkdownYAMLSerializer();
|
||||||
|
var note = serializer.decode(str);
|
||||||
|
var actualStr = serializer.encode(note);
|
||||||
|
|
||||||
|
expect(actualStr, str);
|
||||||
|
});
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user