|
|
|
@ -2,7 +2,7 @@ import {describe, beforeEach, it, sinon, expect, angularMocks} from 'test/lib/co |
|
|
|
|
|
|
|
|
|
import {DashboardExporter} from '../exporter'; |
|
|
|
|
|
|
|
|
|
describe('given dashboard with repeated panels', function() { |
|
|
|
|
describe.only('given dashboard with repeated panels', function() { |
|
|
|
|
var dash, exported; |
|
|
|
|
|
|
|
|
|
beforeEach((done) => { |
|
|
|
@ -39,6 +39,7 @@ describe('given dashboard with repeated panels', function() { |
|
|
|
|
exporter.makeExportable(dash).then(clean => { |
|
|
|
|
exported = clean; |
|
|
|
|
done(); |
|
|
|
|
console.log('done'); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
@ -56,5 +57,11 @@ describe('given dashboard with repeated panels', function() { |
|
|
|
|
expect(panel.datasource).to.be("${DS_GFDB}"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
it('should add datasource as input', function() { |
|
|
|
|
expect(exported.__inputs[0].name).to.be("DS_GFDB"); |
|
|
|
|
expect(exported.__inputs[0].pluginId).to.be("testdb"); |
|
|
|
|
expect(exported.__inputs[0].type).to.be("datasource"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|