Browse Source

style(js): setHaspasswordAuth -> setHasPasswordAuth (#29142)

Evan Purkhiser 3 years ago
parent
commit
cdbdac0d3c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/js/spec/components/modals/sudoModal.spec.jsx

+ 3 - 3
tests/js/spec/components/modals/sudoModal.spec.jsx

@@ -7,7 +7,7 @@ import ConfigStore from 'app/stores/configStore';
 import App from 'app/views/app';
 
 describe('Sudo Modal', function () {
-  const setHaspasswordAuth = hasPasswordAuth =>
+  const setHasPasswordAuth = hasPasswordAuth =>
     act(() => ConfigStore.set('user', {...ConfigStore.get('user'), hasPasswordAuth}));
 
   beforeEach(function () {
@@ -44,7 +44,7 @@ describe('Sudo Modal', function () {
   });
 
   it('can delete an org with sudo flow', async function () {
-    setHaspasswordAuth(true);
+    setHasPasswordAuth(true);
 
     const wrapper = mountWithTheme(
       <App>{<div>placeholder content</div>}</App>,
@@ -129,7 +129,7 @@ describe('Sudo Modal', function () {
   });
 
   it('shows button to redirect if user does not have password auth', async function () {
-    setHaspasswordAuth(false);
+    setHasPasswordAuth(false);
 
     const wrapper = mountWithTheme(
       <App>{<div>placeholder content</div>}</App>,