mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-09 00:12:21 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -5,7 +5,10 @@ from pathlib import Path
|
||||
def test_stream_render_helpers_are_visible_to_catch_block():
|
||||
source = Path("static/js/chat.js").read_text(encoding="utf-8")
|
||||
try_start = source.index(" try {\n // Re-enable auto-scroll")
|
||||
catch_start = source.index(" } catch (err) {", try_start)
|
||||
catch_start = source.index(
|
||||
" } catch (err) {\n // If a Stop or timeout",
|
||||
try_start,
|
||||
)
|
||||
|
||||
outer_scope = source[:try_start]
|
||||
try_body = source[try_start:catch_start]
|
||||
|
||||
Reference in New Issue
Block a user