fixed test
This commit is contained in:
1 parent
7ff5db3fa0
commit
38baac3acc
1 file changed
+3
-6
@@ -40,12 +40,9 @@ test("sequence updater updates nodes", () => {
|
||||
expect((mock.state[0] as ChooseAction).alias).toBe(undefined)
|
||||
mock.updater.updateNode(0, {
|
||||
...mock.state[0],
|
||||
action_data: {
|
||||
...(mock.state[0] as ChooseAction),
|
||||
alias: "Hello"
|
||||
}
|
||||
} as any)
|
||||
expect((mock.state[0] as ChooseAction).alias).toBe("Hello")
|
||||
alias: "Hello"
|
||||
})
|
||||
expect(mock.state[0].alias).toBe("Hello")
|
||||
})
|
||||
test('update conditions for node', () => {
|
||||
const mock = mockSequenceUpdater([
|
||||
|
||||
Reference in new issue
Block a user