diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-03-06 12:38:42 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-06 12:41:21 +0300 |
commit | 2859ddde48709afe32c66726ac811b8b717f3798 (patch) | |
tree | c95362c227a0b876bbb7bd74151ef08233945f1b /spec/javascripts | |
parent | de382f5c01866cdeedff21048cbca4b3043a3057 (diff) |
coerce hasMetrics to a boolean value before instantiating the Vue component
Diffstat (limited to 'spec/javascripts')
-rw-r--r-- | spec/javascripts/monitoring/dashboard_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/javascripts/monitoring/dashboard_spec.js b/spec/javascripts/monitoring/dashboard_spec.js index 79924a5f3a8..c5733ef95cf 100644 --- a/spec/javascripts/monitoring/dashboard_spec.js +++ b/spec/javascripts/monitoring/dashboard_spec.js @@ -9,7 +9,7 @@ describe('Dashboard', () => { let DashboardComponent; let component; const propsData = { - hasMetrics: 'false', + hasMetrics: false, documentationPath: '/path/to/docs', settingsPath: '/path/to/settings', clustersPath: '/path/to/clusters', @@ -58,7 +58,7 @@ describe('Dashboard', () => { it('shows up a loading state', (done) => { component = new DashboardComponent({ el: document.querySelector('#prometheus-graphs'), - propsData: { ...propsData, hasMetrics: 'true' }, + propsData: { ...propsData, hasMetrics: true }, }); component.$mount(); Vue.nextTick(() => { |