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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 18:09:44 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 18:09:44 +0300
commit874ead9c3a50de4c4ca4551eaf5b7eb976d26b50 (patch)
tree637ee9f2da5e251bc08ebf3e972209d51966bf7c /spec/frontend/vue_mr_widget
parent2e4c4055181eec9186458dd5dd3219c937032ec7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/vue_mr_widget')
-rw-r--r--spec/frontend/vue_mr_widget/mr_widget_options_spec.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/spec/frontend/vue_mr_widget/mr_widget_options_spec.js b/spec/frontend/vue_mr_widget/mr_widget_options_spec.js
index ef95cb1b8f2..e022f68fdec 100644
--- a/spec/frontend/vue_mr_widget/mr_widget_options_spec.js
+++ b/spec/frontend/vue_mr_widget/mr_widget_options_spec.js
@@ -273,25 +273,6 @@ describe('mrWidgetOptions', () => {
};
});
- it('should not tell service to check status if document is not visible', () => {
- Object.defineProperty(document, 'visibilityState', {
- value: 'hidden',
- configurable: true,
- });
- vm.checkStatus(cb);
-
- return vm.$nextTick().then(() => {
- expect(vm.service.checkStatus).not.toHaveBeenCalled();
- expect(vm.mr.setData).not.toHaveBeenCalled();
- expect(vm.handleNotification).not.toHaveBeenCalled();
- expect(isCbExecuted).toBeFalsy();
- Object.defineProperty(document, 'visibilityState', {
- value: 'visible',
- configurable: true,
- });
- });
- });
-
it('should tell service to check status if document is visible', () => {
vm.checkStatus(cb);