File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff 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 = {
You can’t perform that action at this time.
0 commit comments