emoji refactor: Let emoji.js own the data.

We now only use page_params.realm_emoji at
intialization time, and then settings_emoji
gets the data from emoji.js.
This commit is contained in:
Steve Howell
2020-07-23 22:39:22 +00:00
committed by Anders Kaseorg
parent d11c6686a1
commit 5280b87f19
4 changed files with 16 additions and 2 deletions

View File

@@ -37,6 +37,7 @@ function set_up_spain_realm_emoji_for_test() {
},
};
emoji.update_emojis(realm_emojis);
assert.equal(emoji.get_server_realm_emoji_data(), realm_emojis);
}
run_test("get_emoji_* API", () => {