mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
api docs: Use normal async/await code in JavaScript examples.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
bf45f921a7
commit
415897f491
@@ -19,7 +19,7 @@ def test_js_bindings(client: Client) -> None:
|
||||
os.environ['ZULIP_REALM'] = client.base_url[:-5]
|
||||
|
||||
output = subprocess.check_output(
|
||||
args=['node', 'zerver/openapi/javascript_examples.js'],
|
||||
args=['node', '--unhandled-rejections=strict', 'zerver/openapi/javascript_examples.js'],
|
||||
universal_newlines=True,
|
||||
)
|
||||
endpoint_responses = json.loads(output)
|
||||
|
||||
Reference in New Issue
Block a user