Skip to content

Commit 58e5f9b

Browse files
committed
Update ParseHooks.spec.js
1 parent 26e0545 commit 58e5f9b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spec/ParseHooks.spec.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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!');

0 commit comments

Comments
 (0)