node tests: Add test() wrapper for channel.

This commit is contained in:
Steve Howell
2021-03-20 14:23:44 +00:00
committed by Steve Howell
parent 5288d57c19
commit 0014bc1549
2 changed files with 26 additions and 13 deletions

View File

@@ -11,6 +11,12 @@ let reload_in_progress = false;
let reload_pending = false;
export let csrf_failed_handler;
export function clear_for_testing() {
reload_in_progress = false;
reload_pending = false;
csrf_failed_handler = undefined;
}
export function is_pending() {
return reload_pending;
}