|
@@ -87,6 +87,7 @@ describe('decodeScalar()', function () {
|
|
|
|
|
|
it('handles falsey values', function () {
|
|
|
expect(utils.decodeScalar(undefined)).toBeUndefined();
|
|
|
+ // @ts-expect-error
|
|
|
expect(utils.decodeScalar(false)).toBeUndefined();
|
|
|
expect(utils.decodeScalar('')).toBeUndefined();
|
|
|
});
|
|
@@ -111,6 +112,7 @@ describe('decodeList()', function () {
|
|
|
|
|
|
it('handles falsey values', function () {
|
|
|
expect(utils.decodeList(undefined)).toEqual([]);
|
|
|
+ // @ts-expect-error
|
|
|
expect(utils.decodeList(false)).toEqual([]);
|
|
|
expect(utils.decodeList('')).toEqual([]);
|
|
|
});
|
|
@@ -135,6 +137,7 @@ describe('decodeInteger()', function () {
|
|
|
|
|
|
it('handles falsey values', function () {
|
|
|
expect(utils.decodeInteger(undefined, 2020)).toEqual(2020);
|
|
|
+ // @ts-expect-error
|
|
|
expect(utils.decodeInteger(false, 2020)).toEqual(2020);
|
|
|
expect(utils.decodeInteger('', 2020)).toEqual(2020);
|
|
|
});
|