summaryrefslogtreecommitdiff
path: root/spec/javascripts/notes/components/noteable_discussion_spec.js
diff options
context:
space:
mode:
authorAndré Luís <aluis@gitlab.com>2018-07-31 01:51:06 +0100
committerAndré Luís <aluis@gitlab.com>2018-08-01 13:45:15 +0100
commitc7cd9ee97cfe1ca8c997b3aad03eb40f5002b317 (patch)
tree4f1b61fcc80f2c76b1428be9e4349fbc5c9a9680 /spec/javascripts/notes/components/noteable_discussion_spec.js
parent8693aa139dcdc5d4ed8939d12b360731f5f9dab8 (diff)
downloadgitlab-ce-c7cd9ee97cfe1ca8c997b3aad03eb40f5002b317.tar.gz
Revert "Merge branch '_acet-fix-mr-autosave' into 'master'"
This reverts commit 5ba542b1094bd8fd95d48d2ac834fd8605cf8fee, reversing changes made to 32c831ea2b8425c71c790b67fb8f2170f3d9955a.
Diffstat (limited to 'spec/javascripts/notes/components/noteable_discussion_spec.js')
-rw-r--r--spec/javascripts/notes/components/noteable_discussion_spec.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/javascripts/notes/components/noteable_discussion_spec.js b/spec/javascripts/notes/components/noteable_discussion_spec.js
index f3f50aed232..7da931fd9cb 100644
--- a/spec/javascripts/notes/components/noteable_discussion_spec.js
+++ b/spec/javascripts/notes/components/noteable_discussion_spec.js
@@ -46,15 +46,10 @@ describe('noteable_discussion component', () => {
it('should toggle reply form', done => {
vm.$el.querySelector('.js-vue-discussion-reply').click();
-
Vue.nextTick(() => {
+ expect(vm.$refs.noteForm).not.toBeNull();
expect(vm.isReplying).toEqual(true);
-
- // There is a watcher for `isReplying` which will init autosave in the next tick
- Vue.nextTick(() => {
- expect(vm.$refs.noteForm).not.toBeNull();
- done();
- });
+ done();
});
});