|
@@ -493,15 +493,17 @@ describe('VariableSrv', function(this: any) {
|
|
|
scenario.setup(() => {
|
|
scenario.setup(() => {
|
|
|
scenario.variableModel = {
|
|
scenario.variableModel = {
|
|
|
type: 'custom',
|
|
type: 'custom',
|
|
|
- query: 'hej, hop, asd',
|
|
|
|
|
|
|
+ query: 'hej, hop, asd, escaped\\,var',
|
|
|
name: 'test',
|
|
name: 'test',
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
it('should update options array', () => {
|
|
it('should update options array', () => {
|
|
|
- expect(scenario.variable.options.length).toBe(3);
|
|
|
|
|
|
|
+ expect(scenario.variable.options.length).toBe(4);
|
|
|
expect(scenario.variable.options[0].text).toBe('hej');
|
|
expect(scenario.variable.options[0].text).toBe('hej');
|
|
|
expect(scenario.variable.options[1].value).toBe('hop');
|
|
expect(scenario.variable.options[1].value).toBe('hop');
|
|
|
|
|
+ expect(scenario.variable.options[2].value).toBe('asd');
|
|
|
|
|
+ expect(scenario.variable.options[3].value).toBe('escaped,var');
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
|