mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user