mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
puppeteer_lib: Explode CommonUtils class.
This may have originally made sense as a class that managed the browser state, but it has since turned into a dumping ground for mostly pure functions that don’t make sense to instantiate. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
53cf974b89
commit
663f1a387d
@@ -2,7 +2,7 @@ import {strict as assert} from "assert";
|
||||
|
||||
import type {Page} from "puppeteer";
|
||||
|
||||
import common from "../puppeteer_lib/common";
|
||||
import * as common from "../puppeteer_lib/common";
|
||||
|
||||
async function get_stream_li(page: Page, stream_name: string): Promise<string> {
|
||||
const stream_id = await common.get_stream_id(page, stream_name);
|
||||
|
||||
Reference in New Issue
Block a user