X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f0fb75714e54f5191a7026eedbec757ee22a682c..2c2339c775f9112f5da638b2beb81d8b6d5abc2b:/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('<LoginPanel />', () => {
             // 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
