Commit 226d43b3 authored by Mike Greiling's avatar Mike Greiling

prefer checking explicitly for null

parent 57d1ddff
...@@ -69,7 +69,7 @@ describe('Dashboard', () => { ...@@ -69,7 +69,7 @@ describe('Dashboard', () => {
setTimeout(() => { setTimeout(() => {
expect(component.showEmptyState).toEqual(false); 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(); expect(component.$el.querySelector('.prometheus-graph-group')).toBeTruthy();
done(); done();
}); });
...@@ -83,7 +83,7 @@ describe('Dashboard', () => { ...@@ -83,7 +83,7 @@ describe('Dashboard', () => {
setTimeout(() => { setTimeout(() => {
expect(component.showEmptyState).toEqual(false); 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(); expect(component.$el.querySelector('.prometheus-graph-group')).toBeTruthy();
done(); done();
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment