From c60b37e3c2ccdf755212ffeb3a459a8cc317f974 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 27 Jul 2020 09:42:21 -0400 Subject: [PATCH] Changing test to make sure it returns the correct locked error. --- ui/src/api_tests/api.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/api_tests/api.spec.ts b/ui/src/api_tests/api.spec.ts index 84150e4ce..52ef4fda9 100644 --- a/ui/src/api_tests/api.spec.ts +++ b/ui/src/api_tests/api.spec.ts @@ -423,7 +423,7 @@ describe('main', () => { } ).then(d => d.json()); - expect(createResponse.comment).toBeUndefined(); + expect(createResponse['error']).toBe('locked'); // Unlock the post for later actions let unlockPostForm: LockPostForm = {