Skip to content

Commit

Permalink
Fix broken cropLength test in search_test.dart (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
brunoocasali authored May 4, 2022
1 parent 94b95fc commit 968fcc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/search_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void main() {
var index = await createBooksIndex();
var result = await index.search('Alice In Wonderland',
attributesToCrop: ["title"], cropLength: 2);
expect(result.hits![0]['_formatted']['title'], equals('Alice In'));
expect(result.hits![0]['_formatted']['title'], equals('Alice In'));
});

test('filter parameter', () async {
Expand Down

0 comments on commit 968fcc1

Please sign in to comment.