mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
refactor
This commit is contained in:
@@ -45,6 +45,7 @@ const adjust_path = path => {
|
||||
)
|
||||
}
|
||||
|
||||
/*
|
||||
const load_external_modules = async state => {
|
||||
const urls = state.loading_external_imports_state.external_imports
|
||||
const results = await Promise.all(
|
||||
@@ -62,6 +63,7 @@ const load_external_modules = async state => {
|
||||
))
|
||||
)
|
||||
}
|
||||
*/
|
||||
|
||||
const dir = load_dir('.')
|
||||
|
||||
@@ -71,10 +73,14 @@ const i = test_initial_state(
|
||||
{}, // files
|
||||
{project_dir: dir, entrypoint: 'test/run.js'}
|
||||
)
|
||||
assert_equal(i.loading_external_imports_state != null, true)
|
||||
|
||||
/*
|
||||
assert_equal(i.loading_external_imports_state != null, true)
|
||||
const external_imports = await load_external_modules(i)
|
||||
const loaded = COMMANDS.external_imports_loaded(i, i, external_imports)
|
||||
*/
|
||||
|
||||
const loaded = i
|
||||
|
||||
assert_equal(loaded.eval_modules_state != null, true)
|
||||
const s = loaded.eval_modules_state
|
||||
|
||||
Reference in New Issue
Block a user