Skip to content

Commit eee7bcd

Browse files
chrisbobbegnprice
authored andcommitted
emoji test: Change one autocomplete test to use a non-popular emoji
We're about to change `prepare`'s unicodeEmoji param so that it expects only non-popular emoji.
1 parent 8c2dfe7 commit eee7bcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/model/emoji_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ void main() {
343343

344344
test('results update after query change', () async {
345345
final store = prepare(
346-
realmEmoji: {'1': 'happy'}, unicodeEmoji: {'1f642': ['smile']});
346+
realmEmoji: {'1': 'happy'}, unicodeEmoji: {'1f516': ['bookmark']});
347347
final view = EmojiAutocompleteView.init(store: store,
348348
query: EmojiAutocompleteQuery('hap'));
349349
bool done = false;
@@ -354,11 +354,11 @@ void main() {
354354
isRealmResult(emojiName: 'happy'));
355355

356356
done = false;
357-
view.query = EmojiAutocompleteQuery('sm');
357+
view.query = EmojiAutocompleteQuery('bo');
358358
await Future(() {});
359359
check(done).isTrue();
360360
check(view.results).single.which(
361-
isUnicodeResult(names: ['smile']));
361+
isUnicodeResult(names: ['bookmark']));
362362
});
363363

364364
Future<Iterable<EmojiAutocompleteResult>> resultsOf(

0 commit comments

Comments
 (0)