summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-03-06 11:23:09 -0600
committerMike Greiling <mike@pixelcog.com>2018-03-06 11:23:09 -0600
commit226d43b31733f4c61b2f2c54cf7a5c4374c801a6 (patch)
tree79da46c1a95cd3c0779ca54c1c7406f872374554
parent57d1ddff0ec39721f49d632ecebfd7be66465e98 (diff)
downloadgitlab-ce-226d43b31733f4c61b2f2c54cf7a5c4374c801a6.tar.gz
prefer checking explicitly for null
-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 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();
});