Skip to content

Commit 5bc7d59

Browse files
committed
Ensure undoLastCommit was called before we await its Promise
1 parent f69be77 commit 5bc7d59

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/controllers/git-tab-controller.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,7 @@ describe.stress(30, 'GitTabController', function() {
717717

718718
assert.lengthOf(wrapper.find('.github-RecentCommit-undoButton'), 1);
719719
wrapper.find('.github-RecentCommit-undoButton').simulate('click');
720+
await assert.async.isTrue(repository.undoLastCommit.called);
720721
await repository.undoLastCommit.returnValues[0];
721722
await updateWrapper(repository, wrapper);
722723

0 commit comments

Comments
 (0)