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:
authorJose Vargas <jvargas@gitlab.com>2018-09-26 00:43:43 +0300
committerJose Vargas <jvargas@gitlab.com>2018-09-26 02:15:30 +0300
commit6ff8146dc23bd1c008a347ab7c4bfbfd8c2486a9 (patch)
treee19792355e1adb932308835947160e23f48df43b /spec/javascripts
parentefedd968fb35a1113414885b48798c2723c7578d (diff)
Change forceRedraw key format
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/monitoring/dashboard_spec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/monitoring/dashboard_spec.js b/spec/javascripts/monitoring/dashboard_spec.js
index a1953382531..f0d53b2d8d7 100644
--- a/spec/javascripts/monitoring/dashboard_spec.js
+++ b/spec/javascripts/monitoring/dashboard_spec.js
@@ -150,7 +150,7 @@ describe('Dashboard', () => {
propsData: { ...propsData, hasMetrics: true, showPanels: false },
});
- expect(component.forceRedraw).toEqual('dashboard-key-0');
+ expect(component.forceRedraw).toEqual(0);
const navSidebarEl = document.querySelector('.nav-sidebar');
navSidebarEl.classList.add('nav-sidebar-collapsed');
@@ -161,7 +161,7 @@ describe('Dashboard', () => {
return Vue.nextTick();
})
.then(() => {
- expect(component.forceRedraw).toEqual('dashboard-key-1');
+ expect(component.forceRedraw).toEqual(component.elWidth);
done();
})
.catch(done.fail);