mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-14 04:02:22 +02:00
16 lines
528 B
Python
16 lines
528 B
Python
from pathlib import Path
|
|
|
|
|
|
SOURCE = Path("static/js/document.js").read_text()
|
|
|
|
|
|
def test_newly_mounted_document_pane_cannot_save_before_binding():
|
|
assert "mountedPane?.dataset.activeDocumentId === activeDocId" in SOURCE
|
|
assert "mountedPane.dataset.activeDocumentId = docId" in SOURCE
|
|
|
|
|
|
def test_suggestion_event_rebinds_a_fresh_editor_shell():
|
|
assert "const openedPanel = !isOpen;" in SOURCE
|
|
assert "data.doc_id && openedPanel && docs.has(data.doc_id)" in SOURCE
|
|
assert "switchToDoc(data.doc_id);" in SOURCE
|