@@ -34,7 +34,7 @@ describe('Generated Config (QuickType)', () => {
3434 expect ( result ) . toBeTypeOf ( 'object' ) ;
3535 expect ( result . proxyUrl ) . toBe ( 'https://proxy.example.com' ) ;
3636 expect ( result . cookieSecret ) . toBe ( 'test-secret' ) ;
37- expect ( Array . isArray ( result . authorisedList ) ) . toBe ( true ) ;
37+ assert . isArray ( result . authorisedList ) ;
3838 expect ( Array . isArray ( result . authentication ) ) . toBe ( true ) ;
3939 expect ( Array . isArray ( result . sink ) ) . toBe ( true ) ;
4040 } ) ;
@@ -55,7 +55,7 @@ describe('Generated Config (QuickType)', () => {
5555 const jsonString = Convert . gitProxyConfigToJson ( configObject ) ;
5656 const parsed = JSON . parse ( jsonString ) ;
5757
58- expect ( parsed ) . toBeTypeOf ( 'object' ) ;
58+ assert . isObject ( parsed ) ;
5959 expect ( parsed . proxyUrl ) . toBe ( 'https://proxy.example.com' ) ;
6060 expect ( parsed . cookieSecret ) . toBe ( 'test-secret' ) ;
6161 } ) ;
@@ -120,7 +120,7 @@ describe('Generated Config (QuickType)', () => {
120120 expect ( result ) . toBeTypeOf ( 'object' ) ;
121121 expect ( Array . isArray ( result . authentication ) ) . toBe ( true ) ;
122122 expect ( Array . isArray ( result . authorisedList ) ) . toBe ( true ) ;
123- expect ( result . contactEmail ) . toBeTypeOf ( 'string' ) ;
123+ assert . isString ( result . contactEmail ) ;
124124 expect ( result . cookieSecret ) . toBeTypeOf ( 'string' ) ;
125125 expect ( result . csrfProtection ) . toBeTypeOf ( 'boolean' ) ;
126126 expect ( Array . isArray ( result . plugins ) ) . toBe ( true ) ;
0 commit comments