tests: remove test for invalid number 0 for boolean as it is coerced now

Signed-off-by: Sayak Mukhopadhyay <mukhopadhyaysayak@gmail.com>
This commit is contained in:
Sayak Mukhopadhyay
2022-12-28 21:38:01 +05:30
parent 57e91a24b9
commit 74eed91f5b
-3
View File
@@ -105,9 +105,6 @@ function expectValidValues(config: ConfigReader) {
}
function expectInvalidValues(config: ConfigReader) {
expect(() => config.getBoolean('zero')).toThrow(
"Invalid type in config for key 'zero' in 'ctx', got number, wanted boolean",
);
expect(() => config.getBoolean('string')).toThrow(
"Unable to convert config value for key 'string' in 'ctx' to a boolean",
);