Skip to content

Commit

Permalink
✏️ fix typos in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Apr 21, 2024
1 parent 7818c2a commit 37d3cd0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions test/unit/decode_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -1018,7 +1018,7 @@ void main() {
);
});

test('parses an map', () {
test('parses a map', () {
final Map<String, dynamic> input = {
'user[name]': {'pop[bob]': 3},
'user[email]': null
Expand Down Expand Up @@ -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},
Expand All @@ -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]': {
Expand Down
10 changes: 5 additions & 5 deletions test/unit/encode_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ void main() {
},
);

test('encodes an map inside a list', () {
test('encodes a map inside a list', () {
expect(
QS.encode(
{
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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<String, dynamic> obj = {
'a': {},
Expand Down Expand Up @@ -1874,7 +1874,7 @@ void main() {
);

test(
'encodes an map using an alternative delimiter',
'encodes a map using an alternative delimiter',
() {
expect(
QS.encode(
Expand Down Expand Up @@ -2912,7 +2912,7 @@ void main() {
group('encodes empty keys', () {
for (Map<String, dynamic> 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(
Expand Down
14 changes: 7 additions & 7 deletions test/unit/utils_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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]),
Expand Down Expand Up @@ -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'},
Expand All @@ -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(
{
Expand All @@ -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(
{
Expand Down Expand Up @@ -619,7 +619,7 @@ void main() {
);
});

test('merges an object into an list', () {
test('merges an object into a list', () {
expect(
Utils.merge(
{
Expand Down Expand Up @@ -659,7 +659,7 @@ void main() {
);
});

test('merges an list into an object', () {
test('merges a list into an object', () {
expect(
Utils.merge(
{
Expand Down

0 comments on commit 37d3cd0

Please sign in to comment.