|
|
@@ -53,9 +53,10 @@ describe('DashImportCtrl', function() {
|
|
|
// setup api mock
|
|
|
backendSrv.get = sinon.spy(() => {
|
|
|
return Promise.resolve({
|
|
|
+ json: {}
|
|
|
});
|
|
|
});
|
|
|
- ctx.ctrl.checkGnetDashboard();
|
|
|
+ return ctx.ctrl.checkGnetDashboard();
|
|
|
});
|
|
|
|
|
|
it('should call gnet api with correct dashboard id', function() {
|
|
|
@@ -69,9 +70,10 @@ describe('DashImportCtrl', function() {
|
|
|
// setup api mock
|
|
|
backendSrv.get = sinon.spy(() => {
|
|
|
return Promise.resolve({
|
|
|
+ json: {}
|
|
|
});
|
|
|
});
|
|
|
- ctx.ctrl.checkGnetDashboard();
|
|
|
+ return ctx.ctrl.checkGnetDashboard();
|
|
|
});
|
|
|
|
|
|
it('should call gnet api with correct dashboard id', function() {
|