fix(graphite): minor fix to graphite query editor so it does not issue render requests for incomplete queries, fixes #3510

This commit is contained in:
Torkel Ödegaard
2015-12-14 18:33:44 +01:00
parent 55448de92a
commit 79d56f779d
5 changed files with 53 additions and 35 deletions

View File

@@ -66,6 +66,12 @@ describe('graphiteDatasource', function() {
});
describe('building graphite params', function() {
it('should return empty array if no targets', function() {
var results = ctx.ds.buildGraphiteParams({
targets: [{}]
});
expect(results.length).to.be(0);
});
it('should uri escape targets', function() {
var results = ctx.ds.buildGraphiteParams({