|
|
@@ -349,6 +349,17 @@ define([
|
|
|
});
|
|
|
});
|
|
|
|
|
|
+ describeUpdateVariable('with include all pipe all values', function(scenario) {
|
|
|
+ scenario.setup(function() {
|
|
|
+ scenario.variable = { type: 'query', query: 'apps.*', name: 'test', includeAll: true, allFormat: 'pipe' };
|
|
|
+ scenario.queryResult = [{text: 'backend1'}, {text: 'backend2'}, { text: 'backend3'}];
|
|
|
+ });
|
|
|
+
|
|
|
+ it('should add pipe delimited string', function() {
|
|
|
+ expect(scenario.variable.options[0].value).to.be('backend1|backend2|backend3');
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
});
|
|
|
|
|
|
});
|