Validate empty Show On Map options (#2631)
This commit is contained in:
parent
3c32e3f64d
commit
d6f087efad
@ -36,7 +36,8 @@ class ShowOnMap extends Operation {
|
|||||||
{
|
{
|
||||||
name: "Input Format",
|
name: "Input Format",
|
||||||
type: "option",
|
type: "option",
|
||||||
value: ["Auto"].concat(FORMATS)
|
value: ["Auto"].concat(FORMATS),
|
||||||
|
allowEmpty: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Input Delimiter",
|
name: "Input Delimiter",
|
||||||
@ -49,7 +50,8 @@ class ShowOnMap extends Operation {
|
|||||||
"Comma",
|
"Comma",
|
||||||
"Semi-colon",
|
"Semi-colon",
|
||||||
"Colon"
|
"Colon"
|
||||||
]
|
],
|
||||||
|
allowEmpty: false
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,4 +36,26 @@ TestRegister.addTests([
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Show on map: empty input format is rejected",
|
||||||
|
input: "1, 24",
|
||||||
|
expectedOutput: "Input Format cannot be empty.",
|
||||||
|
recipeConfig: [
|
||||||
|
{
|
||||||
|
op: "Show on map",
|
||||||
|
args: [13, "", "Auto"]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Show on map: empty input delimiter is rejected",
|
||||||
|
input: "1, 24",
|
||||||
|
expectedOutput: "Input Delimiter cannot be empty.",
|
||||||
|
recipeConfig: [
|
||||||
|
{
|
||||||
|
op: "Show on map",
|
||||||
|
args: [13, "Auto", ""]
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user