logs in async calls

This commit is contained in:
Dmitry Vasilev
2022-11-15 14:43:42 +08:00
parent 2ebb49c754
commit 7723d7d09d
3 changed files with 27 additions and 25 deletions

View File

@@ -2314,6 +2314,7 @@ const y = x()`
}
const fn2 = () => {
console.log(1)
}
// Use Function constructor to exec impure code for testing
@@ -2341,6 +2342,8 @@ const y = x()`
const state = COMMANDS.on_async_call(i, call)
assert_equal(state.async_calls, [call])
assert_equal(state.logs.logs.length, 1)
// Expand call
const {state: expanded} = COMMANDS.calltree.click(state, call.id)
assert_equal(expanded.async_calls[0].children[0].fn.name, 'fn2')