File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ describe('Hooks', () => {
441441
442442 it ( 'should run the function on the test server (error handling)' , done => {
443443 app . post ( '/SomeFunctionError' , function ( req , res ) {
444- res . json ( { error : { code : 1337 , message : 'hacking that one!' } } ) ;
444+ res . json ( { error : { code : 1337 , error : 'hacking that one!' } } ) ;
445445 } ) ;
446446 // The function is deleted as the DB is dropped between calls
447447 Parse . Hooks . createFunction ( 'SOME_TEST_FUNCTION' , hookServerURL + '/SomeFunctionError' )
@@ -464,7 +464,6 @@ describe('Hooks', () => {
464464 expect ( err ) . not . toBe ( undefined ) ;
465465 expect ( err ) . not . toBe ( null ) ;
466466 if ( err ) {
467- expect ( err . code ) . toBe ( 1337 ) ;
468467 expect ( err . code ) . toBe ( Parse . Error . SCRIPT_FAILED ) ;
469468 expect ( err . message . code ) . toEqual ( 1337 ) ;
470469 expect ( err . message . error ) . toEqual ( 'hacking that one!' ) ;
You can’t perform that action at this time.
0 commit comments