mirror of
https://github.com/grafana/grafana.git
synced 2025-09-23 13:23:19 +08:00
check for correct quoting of multiple singlequotes
This commit is contained in:
@ -230,6 +230,7 @@ describe('PostgreSQLDatasource', function() {
|
||||
it('should return a quoted value', () => {
|
||||
ctx.variable.multi = true;
|
||||
expect(ctx.ds.interpolateVariable("a'bc", ctx.variable)).toEqual("'a''bc'");
|
||||
expect(ctx.ds.interpolateVariable("a'b'c", ctx.variable)).toEqual("'a''b''c'");
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user