prefer checking explicitly for null

This commit is contained in:
Mike Greiling 2018-03-06 11:23:09 -06:00
parent 57d1ddff0e
commit 226d43b317
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -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();
});