prefer checking explicitly for null
This commit is contained in:
parent
57d1ddff0e
commit
226d43b317
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue