Skip to content

Commit

Permalink
✅ update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
techouse committed Nov 23, 2024
1 parent 3887d46 commit 7215cd1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/unit/decode_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,17 @@ void main() {
);
});

test('decodes nested lists with parentKey not null', () {
expect(
QS.decode('a[0][]=b'),
equals({
'a': [
['b']
]
}),
);
});

test('allows to specify list indices', () {
expect(
QS.decode('a[1]=c&a[0]=b&a[2]=d'),
Expand Down

0 comments on commit 7215cd1

Please sign in to comment.