File tree 1 file changed +1
-2
lines changed
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -441,7 +441,7 @@ describe('Hooks', () => {
441
441
442
442
it ( 'should run the function on the test server (error handling)' , done => {
443
443
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!' } } ) ;
445
445
} ) ;
446
446
// The function is deleted as the DB is dropped between calls
447
447
Parse . Hooks . createFunction ( 'SOME_TEST_FUNCTION' , hookServerURL + '/SomeFunctionError' )
@@ -464,7 +464,6 @@ describe('Hooks', () => {
464
464
expect ( err ) . not . toBe ( undefined ) ;
465
465
expect ( err ) . not . toBe ( null ) ;
466
466
if ( err ) {
467
- expect ( err . code ) . toBe ( 1337 ) ;
468
467
expect ( err . code ) . toBe ( Parse . Error . SCRIPT_FAILED ) ;
469
468
expect ( err . message . code ) . toEqual ( 1337 ) ;
470
469
expect ( err . message . error ) . toEqual ( 'hacking that one!' ) ;
You can’t perform that action at this time.
0 commit comments