diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-03-06 11:23:09 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-03-06 11:23:09 -0600 |
commit | 226d43b31733f4c61b2f2c54cf7a5c4374c801a6 (patch) | |
tree | 79da46c1a95cd3c0779ca54c1c7406f872374554 /spec | |
parent | 57d1ddff0ec39721f49d632ecebfd7be66465e98 (diff) | |
download | gitlab-ce-226d43b31733f4c61b2f2c54cf7a5c4374c801a6.tar.gz |
prefer checking explicitly for null
Diffstat (limited to 'spec')
-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 39de6f1bba6..29b355307ef 100644 --- a/spec/javascripts/monitoring/dashboard_spec.js +++ b/spec/javascripts/monitoring/dashboard_spec.js @@ -69,7 +69,7 @@ describe('Dashboard', () => { setTimeout(() => { expect(component.showEmptyState).toEqual(false); - expect(component.$el.querySelector('.legend-group')).toBeFalsy(); + expect(component.$el.querySelector('.legend-group')).toEqual(null); expect(component.$el.querySelector('.prometheus-graph-group')).toBeTruthy(); done(); }); @@ -83,7 +83,7 @@ describe('Dashboard', () => { setTimeout(() => { expect(component.showEmptyState).toEqual(false); - expect(component.$el.querySelector('.prometheus-panel')).toBeFalsy(); + expect(component.$el.querySelector('.prometheus-panel')).toEqual(null); expect(component.$el.querySelector('.prometheus-graph-group')).toBeTruthy(); done(); }); |