diff --git a/lib/utils.dart b/lib/utils.dart index 5a5acfffe8..79069e5958 100644 --- a/lib/utils.dart +++ b/lib/utils.dart @@ -62,7 +62,7 @@ Directory createDirIfNotExist(String dirPath) { } /// Returns a prettified json string -String prettifyJsonEncode(Object? map) => JsonEncoder.withIndent(' ' * 2).convert(map); +String prettifyJsonEncode(Object? map) => JsonEncoder.withIndent(' ' * 4).convert(map); /// Check if give [File] or [Directory] exists at the give [paths], /// if not returns the failed [FileSystemEntity] path diff --git a/test/utils_test.dart b/test/utils_test.dart index 1ff60f5e17..4880cddc6d 100644 --- a/test/utils_test.dart +++ b/test/utils_test.dart @@ -117,11 +117,11 @@ void main() { }); group('#prettifyJsonEncode', () { - test('should return prettiffed json string 2 indents', () { + test('should return prettiffed json string 4 indents', () { const expectedValue = r''' { - "key1": "value1", - "key2": "value2" + "key1": "value1", + "key2": "value2" }'''; final result = utils.prettifyJsonEncode({ 'key1': 'value1',