X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/a2a35bb1683304edd8d20e1a2b5df29e81669b46..86df4771fd4ce9e88bd349f738d5833d5cd70c51:/src/views/login-panel/login-panel.test.tsx 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