fix: fix UndoManager tests

This commit is contained in:
Akash Yadav
2022-12-07 10:15:01 +05:30
parent 64b6f4680e
commit af2cfa8685
2 changed files with 1 additions and 2 deletions
Binary file not shown.
@@ -89,9 +89,8 @@ class UndoManagerTest {
assertThat(parent.childCount).isEqualTo(0)
// add child again
// we should still be able to undo the last action in which the view was removed
undoManager.undo()
assertThat(undoManager.canUndo()).isTrue()
assertThat(undoManager.canUndo()).isFalse()
assertThat(undoManager.canRedo()).isTrue()
assertThat(parent.childCount).isEqualTo(1)
assertThat(parent[0]).isEqualTo(child)