This commit is contained in:
Dmitry Vasilev
2022-11-29 03:37:15 +08:00
parent 1c07a092e7
commit 0332d5a0b8
4 changed files with 21 additions and 17 deletions

View File

@@ -28,13 +28,15 @@ export const assert_code_error = (codestring, error) => {
}
export const test_initial_state = (code, state) => {
return COMMANDS.get_initial_state(
{
...state,
files: typeof(code) == 'object' ? code : { '' : code},
entrypoint: '',
current_module: '',
},
return COMMANDS.open_run_window(
COMMANDS.get_initial_state(
{
files: typeof(code) == 'object' ? code : { '' : code},
entrypoint: '',
current_module: '',
...state,
},
)
)
}