fix self-hosted test

This commit is contained in:
Dmitry Vasilev
2023-01-15 13:36:25 +08:00
parent bc8ae5a0ba
commit 6b10ea5018

View File

@@ -2944,8 +2944,8 @@ const y = x()`
}),
test('async/await move_cursor before code evaluated', async () => {
const i = test_initial_state(`
await new Promise(resolve => globalThis.setTimeout(resolve, 1))
const i = test_initial_state(`
await new Promise(resolve => null)
`)
const moved = COMMANDS.move_cursor(i, 0)
// No assertion, must not throw