mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 13:04:30 -08:00
logs in async calls
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user