summaryrefslogtreecommitdiff
path: root/spec/frontend/image_diff/init_discussion_tab_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/image_diff/init_discussion_tab_spec.js')
-rw-r--r--spec/frontend/image_diff/init_discussion_tab_spec.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/frontend/image_diff/init_discussion_tab_spec.js b/spec/frontend/image_diff/init_discussion_tab_spec.js
index 5bc0c738944..f6f05037c95 100644
--- a/spec/frontend/image_diff/init_discussion_tab_spec.js
+++ b/spec/frontend/image_diff/init_discussion_tab_spec.js
@@ -11,23 +11,21 @@ describe('initDiscussionTab', () => {
`);
});
- it('should pass canCreateNote as false to initImageDiff', (done) => {
+ it('should pass canCreateNote as false to initImageDiff', () => {
jest
.spyOn(initImageDiffHelper, 'initImageDiff')
.mockImplementation((diffFileEl, canCreateNote) => {
expect(canCreateNote).toEqual(false);
- done();
});
initDiscussionTab();
});
- it('should pass renderCommentBadge as true to initImageDiff', (done) => {
+ it('should pass renderCommentBadge as true to initImageDiff', () => {
jest
.spyOn(initImageDiffHelper, 'initImageDiff')
.mockImplementation((diffFileEl, canCreateNote, renderCommentBadge) => {
expect(renderCommentBadge).toEqual(true);
- done();
});
initDiscussionTab();