mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-09 16:32:21 +02:00
test(harness): support cache-busted frontend module imports
This commit is contained in:
@@ -53,7 +53,7 @@ def _run_markdown_case(markdown: str, render_expr: str = "mod.mdToHtml(input)",
|
||||
|
||||
let source = fs.readFileSync('./static/js/markdown.js', 'utf8');
|
||||
source = source.replace(
|
||||
/import uiModule from ['"]\.\/ui\.js['"];/,
|
||||
/import uiModule from ['"]\.\/ui\.js(?:\?[^'"]*)?['"];?/,
|
||||
''
|
||||
);
|
||||
source = source.replace(
|
||||
|
||||
Reference in New Issue
Block a user