fix: resolve data loss issue during block type conversion (#726)
* fix: resolve data loss issue during block type conversion * fix: flutter test * test: add more tests
This commit is contained in:
parent
0a84917e71
commit
5e5b908e78
1 changed files with 162 additions and 52 deletions
|
|
@ -8,7 +8,7 @@ void main() async {
|
|||
test('built-in json', () {
|
||||
final json = jsonDecode(quillDeltaSample.replaceAll('\\\\\n', '\\n'));
|
||||
final document = quillDeltaEncoder.convert(Delta.fromJson(json));
|
||||
expect(jsonEncode(document.toJson()), documentSample);
|
||||
expect(document.toJson(), jsonDecode(documentSample));
|
||||
});
|
||||
|
||||
test('issues 356', () {
|
||||
|
|
|
|||
Loading…
Reference in a new issue