node tests: Add test() wrapper for typing_data.

This commit is contained in:
Steve Howell
2021-03-15 15:17:37 +00:00
committed by Steve Howell
parent deaf633b04
commit 09bad82131
2 changed files with 14 additions and 2 deletions

View File

@@ -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);
}