|
@@ -81,6 +81,16 @@ define([
|
|
|
expect(result).to.be('(test|test2)');
|
|
expect(result).to.be('(test|test2)');
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
+ it('multi value and pipe should render pipe string', function() {
|
|
|
|
|
+ var result = _templateSrv.renderVariableValue({
|
|
|
|
|
+ multiFormat: 'pipe',
|
|
|
|
|
+ current: {
|
|
|
|
|
+ value: ['test','test2'],
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ expect(result).to.be('test|test2');
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
describe('can check if variable exists', function() {
|
|
describe('can check if variable exists', function() {
|