Commit 0f0763b6 by Erik Sundell

stackdriver: fix failing tests

parent d1740f09
...@@ -235,8 +235,8 @@ describe('StackdriverDataSource', () => { ...@@ -235,8 +235,8 @@ describe('StackdriverDataSource', () => {
beforeEach(() => { beforeEach(() => {
res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }]); res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }]);
}); });
it('should return none', () => { it('should return undefined', () => {
expect(res).toEqual('none'); expect(res).toBeUndefined();
}); });
}); });
describe('and the stackdriver unit has a corresponding grafana unit', () => { describe('and the stackdriver unit has a corresponding grafana unit', () => {
...@@ -262,16 +262,16 @@ describe('StackdriverDataSource', () => { ...@@ -262,16 +262,16 @@ describe('StackdriverDataSource', () => {
beforeEach(() => { beforeEach(() => {
res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }, { unit: 'megaseconds' }]); res = ds.resolvePanelUnitFromTargets([{ unit: 'megaseconds' }, { unit: 'megaseconds' }]);
}); });
it('should return the default value - none', () => { it('should return the default value of undefined', () => {
expect(res).toEqual('none'); expect(res).toBeUndefined();
}); });
}); });
describe('and all target units are not the same', () => { describe('and all target units are not the same', () => {
beforeEach(() => { beforeEach(() => {
res = ds.resolvePanelUnitFromTargets([{ unit: 'bit' }, { unit: 'min' }]); res = ds.resolvePanelUnitFromTargets([{ unit: 'bit' }, { unit: 'min' }]);
}); });
it('should return the default value - none', () => { it('should return the default value of undefined', () => {
expect(res).toEqual('none'); expect(res).toBeUndefined();
}); });
}); });
}); });
......
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