mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 11:03:54 +00:00
node tests: Add test() wrapper for typing_data.
This commit is contained in:
committed by
Steve Howell
parent
deaf633b04
commit
09bad82131
@@ -7,6 +7,11 @@ import * as util from "./util";
|
||||
const typist_dct = new Map();
|
||||
const inbound_timer_dict = new Map();
|
||||
|
||||
export function clear_for_testing() {
|
||||
typist_dct.clear();
|
||||
inbound_timer_dict.clear();
|
||||
}
|
||||
|
||||
function to_int(s) {
|
||||
return Number.parseInt(s, 10);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user