From 438cb7f26ddff8a61fda7536c3de586673535d7f Mon Sep 17 00:00:00 2001 From: "G.Ambatte" Date: Sun, 25 Jun 2023 14:41:15 +1200 Subject: [PATCH] Fix test --- server/homebrew.api.spec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/server/homebrew.api.spec.js b/server/homebrew.api.spec.js index 13ea3ea2..158b4460 100644 --- a/server/homebrew.api.spec.js +++ b/server/homebrew.api.spec.js @@ -197,9 +197,7 @@ describe('Tests for api', ()=>{ err = e; } - expect(err).toEqual({ 'message' : `The current logged in user does not have editor access to this brew. - -If you believe you should have access to this brew, ask the file owner to invite you as an author by opening the brew, viewing the Properties tab, and adding your username to the "invited authors" list. You can then try to access this document again.` }); + expect(err).toEqual({ HBErrorCode: '03', message: 'User is not an Author', name: 'Access Error', status: 403 }); }); it('does not throw if no authors', async ()=>{