Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorEric Eastwood <contact@ericeastwood.com>2017-06-20 02:43:08 +0300
committerEric Eastwood <contact@ericeastwood.com>2017-06-20 02:52:19 +0300
commit19e12aac0217efae6b474d8601928a217064fb21 (patch)
tree8982e2c5cac148330a5bb5eb24e30b7f954eb847 /spec
parent025cbc2ad4dc175634676ff8a6955e043512d8bf (diff)
Fix note highlight being added to new notes
Always use a explicit true/false value to set highlight because jQuery assumes `null` means toggle from whatever state and doesn't force false. Regressed in https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12098
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/notes_spec.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/javascripts/notes_spec.js b/spec/javascripts/notes_spec.js
index b272f43a166..5ece4ed080b 100644
--- a/spec/javascripts/notes_spec.js
+++ b/spec/javascripts/notes_spec.js
@@ -176,7 +176,7 @@ import '~/notes';
Notes.updateNoteTargetSelector($note);
- expect($note.toggleClass).toHaveBeenCalledWith('target', null);
+ expect($note.toggleClass).toHaveBeenCalledWith('target', false);
});
});