Skip to content

Commit c6d3ed3

Browse files
committed
test: remove unnecessary skipped tests for null, undefined, array, and primitive inputs in sanitizeObject
1 parent afd016c commit c6d3ed3

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

test/utils.spec.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -65,27 +65,6 @@ describe('Utils', () => {
6565
expect(output).toEqual({ a: 1, b: 2 }); // Dangerous props removed
6666
});
6767

68-
xit('should handle null and undefined inputs', () => {
69-
// @ts-expect-error Null and undefined are not objects
70-
expect(sanitizeObject(null)).toBeNull();
71-
// @ts-expect-error Null and undefined are not objects
72-
expect(sanitizeObject(undefined)).toBeUndefined();
73-
});
74-
75-
xit('should handle array inputs without modification', () => {
76-
const input = [1, 2, 3];
77-
expect(sanitizeObject(input)).toEqual(input);
78-
});
79-
80-
xit('should handle primitive inputs without modification', () => {
81-
// @ts-expect-error String, number, and boolean are not objects
82-
expect(sanitizeObject('string')).toBe('string');
83-
// @ts-expect-error String, number, and boolean are not objects
84-
expect(sanitizeObject(123)).toBe(123);
85-
// @ts-expect-error String, number, and boolean are not objects
86-
expect(sanitizeObject(true)).toBe(true);
87-
});
88-
8968
it('should preserve all safe properties', () => {
9069
const date = new Date();
9170
const input = {

0 commit comments

Comments
 (0)