mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 16:14:02 +00:00
node tests: Add explicit test for clearing input pills.
This commit is contained in:
committed by
Steve Howell
parent
e53be6d043
commit
98fc28c8ed
@@ -221,6 +221,10 @@ exports.create = function (opts) {
|
||||
return store.pills.find((pill) => pill.id === id);
|
||||
},
|
||||
|
||||
_get_pills_for_testing() {
|
||||
return store.pills;
|
||||
},
|
||||
|
||||
items() {
|
||||
return store.pills.map((pill) => pill.item);
|
||||
},
|
||||
@@ -393,6 +397,7 @@ exports.create = function (opts) {
|
||||
clear: funcs.removeAllPills.bind(funcs),
|
||||
clear_text: funcs.clear_text,
|
||||
is_pending: funcs.is_pending,
|
||||
_get_pills_for_testing: funcs._get_pills_for_testing,
|
||||
};
|
||||
|
||||
return prototype;
|
||||
|
Reference in New Issue
Block a user