From 37d3cd021d98dd363f14f262649230a0d907a053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klemen=20Tu=C5=A1ar?= Date: Sun, 21 Apr 2024 11:56:26 +0100 Subject: [PATCH] :pencil2: fix typos in tests --- test/unit/decode_test.dart | 8 ++++---- test/unit/encode_test.dart | 10 +++++----- test/unit/utils_test.dart | 14 +++++++------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/test/unit/decode_test.dart b/test/unit/decode_test.dart index 6c4dbb9..f948871 100644 --- a/test/unit/decode_test.dart +++ b/test/unit/decode_test.dart @@ -700,7 +700,7 @@ void main() { ); }); - test('correctly prunes undefined values when converting an list to an map', + test('correctly prunes undefined values when converting a list to a map', () { expect( QS.decode('a[2]=b&a[99999999]=c'), @@ -1018,7 +1018,7 @@ void main() { ); }); - test('parses an map', () { + test('parses a map', () { final Map input = { 'user[name]': {'pop[bob]': 3}, 'user[email]': null @@ -1203,7 +1203,7 @@ void main() { ); }); - test('parses an map in dot notation', () { + test('parses a map in dot notation', () { expect( QS.decode({ 'user.name': {'pop[bob]': 3}, @@ -1220,7 +1220,7 @@ void main() { ); }); - test('parses an map and not child values', () { + test('parses a map and not child values', () { expect( QS.decode({ 'user[name]': { diff --git a/test/unit/encode_test.dart b/test/unit/encode_test.dart index a0d045c..6811c55 100644 --- a/test/unit/encode_test.dart +++ b/test/unit/encode_test.dart @@ -1107,7 +1107,7 @@ void main() { }, ); - test('encodes an map inside a list', () { + test('encodes a map inside a list', () { expect( QS.encode( { @@ -1304,7 +1304,7 @@ void main() { ); test( - 'encodes an map inside a list with dots notation', + 'encodes a map inside a list with dots notation', () { expect( QS.encode( @@ -1801,7 +1801,7 @@ void main() { ); test( - 'encodes an map with a null map as a child', + 'encodes a map with a null map as a child', () { final Map obj = { 'a': {}, @@ -1874,7 +1874,7 @@ void main() { ); test( - 'encodes an map using an alternative delimiter', + 'encodes a map using an alternative delimiter', () { expect( QS.encode( @@ -2912,7 +2912,7 @@ void main() { group('encodes empty keys', () { for (Map element in emptyTestCases) { test( - 'encodes an map with empty string key with ${element['input']}', + 'encodes a map with empty string key with ${element['input']}', () { expect( QS.encode( diff --git a/test/unit/utils_test.dart b/test/unit/utils_test.dart index de52ad0..84e7165 100644 --- a/test/unit/utils_test.dart +++ b/test/unit/utils_test.dart @@ -248,7 +248,7 @@ void main() { ); test( - 'merges two objects with the same key and different values into an list', + 'merges two objects with the same key and different values into a list', () { expect( Utils.merge( @@ -282,7 +282,7 @@ void main() { ); }); - test('merges null into an list', () { + test('merges null into a list', () { expect( Utils.merge(null, [42]), equals([null, 42]), @@ -334,7 +334,7 @@ void main() { ); }); - test('merges a standalone and an object into an list', () { + test('merges a standalone and an object into a list', () { expect( Utils.merge( {'foo': 'bar'}, @@ -353,7 +353,7 @@ void main() { ); }); - test('merges a standalone and two objects into an list', () { + test('merges a standalone and two objects into a list', () { expect( Utils.merge( { @@ -378,7 +378,7 @@ void main() { ); }); - test('merges an object sandwiched by two standalones into an list', () { + test('merges an object sandwiched by two standalones into a list', () { expect( Utils.merge( { @@ -619,7 +619,7 @@ void main() { ); }); - test('merges an object into an list', () { + test('merges an object into a list', () { expect( Utils.merge( { @@ -659,7 +659,7 @@ void main() { ); }); - test('merges an list into an object', () { + test('merges a list into an object', () { expect( Utils.merge( {