mirror of https://github.com/zulip/zulip.git
typeahead tests [nfc]: Tighten up list of test emoji.
This will make it more comfortable to add a good bit more of these.
This commit is contained in:
parent
e7858e094d
commit
e91e05d187
|
@ -10,27 +10,12 @@ const typeahead = zrequire("../shared/js/typeahead");
|
||||||
// The data structures here may be different for
|
// The data structures here may be different for
|
||||||
// different apps; the only key thing is we look
|
// different apps; the only key thing is we look
|
||||||
// at emoji_name and we'll return the entire structures.
|
// at emoji_name and we'll return the entire structures.
|
||||||
|
const emojis = [
|
||||||
const emoji_japanese_post_office = {
|
{emoji_name: "japanese_post_office", url: "TBD"},
|
||||||
emoji_name: "japanese_post_office",
|
{emoji_name: "panda_face", emoji_code: "1f43c"},
|
||||||
url: "TBD",
|
{emoji_name: "smile"},
|
||||||
};
|
{emoji_name: "tada", random_field: "whatever"},
|
||||||
|
];
|
||||||
const emoji_panda_face = {
|
|
||||||
emoji_name: "panda_face",
|
|
||||||
emoji_code: "1f43c",
|
|
||||||
};
|
|
||||||
|
|
||||||
const emoji_smile = {
|
|
||||||
emoji_name: "smile",
|
|
||||||
};
|
|
||||||
|
|
||||||
const emoji_tada = {
|
|
||||||
emoji_name: "tada",
|
|
||||||
random_field: "whatever",
|
|
||||||
};
|
|
||||||
|
|
||||||
const emojis = [emoji_japanese_post_office, emoji_panda_face, emoji_smile, emoji_tada];
|
|
||||||
|
|
||||||
run_test("get_emoji_matcher", () => {
|
run_test("get_emoji_matcher", () => {
|
||||||
function assert_matches(query, expected) {
|
function assert_matches(query, expected) {
|
||||||
|
|
Loading…
Reference in New Issue