mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
fix bug
This commit is contained in:
11
test/test.js
11
test/test.js
@@ -3444,4 +3444,15 @@ const y = x()`
|
||||
|
||||
patch_builtin('fetch', null)
|
||||
}),
|
||||
|
||||
test('record io logs recorded twice bug', () => {
|
||||
const code = `Math.random()`
|
||||
const i = test_initial_state(code)
|
||||
const second = COMMANDS.input(
|
||||
i,
|
||||
`console.log(1); Math.random(); Math.random()`,
|
||||
0
|
||||
)
|
||||
assert_equal(second.state.logs.logs.length, 1)
|
||||
})
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user