node tests: Directly test simple stream_pill helpers.

We also sort the user_ids to be deterministic.
This commit is contained in:
Steve Howell
2022-02-22 14:25:13 +00:00
committed by Tim Abbott
parent d994dcbfb2
commit 0452f49c97
2 changed files with 20 additions and 3 deletions

View File

@@ -54,6 +54,7 @@ export function get_user_ids(pill_widget) {
user_ids = Array.from(new Set(user_ids));
user_ids = user_ids.filter(Boolean);
user_ids.sort((a, b) => a - b);
return user_ids;
}