Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit eb4e0a3

Browse files
committed
force the dom to update
1 parent 29ecbdc commit eb4e0a3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/containers/issueish-search-container.test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ describe('IssueishSearchContainer', function() {
158158

159159
resolve();
160160
await promise;
161-
161+
await wrapper.instance().forceUpdate();
162+
162163
const controller = wrapper.update().find('BareIssueishListController');
163164
assert.isFalse(controller.prop('isLoading'));
164165
assert.strictEqual(controller.prop('total'), 2);

test/controllers/multi-file-patch-controller.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ describe('MultiFilePatchController', function() {
162162
const promise = wrapper.instance().patchChangePromise;
163163
wrapper.setProps({multiFilePatch: MultiFilePatch.createNull()});
164164
await promise;
165-
165+
await wrapper.instance().forceUpdate();
166166
// Performs an operation again
167167
assert.strictEqual(await wrapper.find('MultiFilePatchView').prop('toggleFile')(filePatch), 'staged');
168168
});

0 commit comments

Comments
 (0)