From 86df4771fd4ce9e88bd349f738d5833d5cd70c51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kuty=C5=82a?= Date: Mon, 24 Aug 2020 15:52:38 +0200 Subject: [PATCH] 16735: Added test for non existing method MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- src/views/login-panel/login-panel.test.tsx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/views/login-panel/login-panel.test.tsx b/src/views/login-panel/login-panel.test.tsx index c716433e..b490acd9 100644 --- a/src/views/login-panel/login-panel.test.tsx +++ b/src/views/login-panel/login-panel.test.tsx @@ -113,5 +113,24 @@ describe('', () => { // then expect(result).toBeTruthy(); }); + + it('should return false for not specified config option config.clusterConfig.Login.NOT_EXISTING.Enable', () => { + // given + const config = { + clusterConfig: { + Login: { + NOT_EXISTING: { + Enable: true + }, + }, + }, + }; + + // when + const result = requirePasswordLogin(config); + + // then + expect(result).toBeFalsy(); + }); }); }); \ No newline at end of file -- 2.30.2