Slash escaping test

This commit is contained in:
simnv 2016-03-20 00:13:48 +06:00
parent be8ec24106
commit dd5b4a25d1

View File

@ -135,6 +135,11 @@ define([
expect(result).to.be('test|test2');
});
it('slash should be properly escaped in regex format', function() {
var result = _templateSrv.formatValue('Gi3/14', 'regex');
expect(result).to.be('Gi3\\/14');
});
});
describe('can check if variable exists', function() {