diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2020-03-17 12:57:00 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2020-04-08 20:03:18 +0000 |
commit | 93cf9ba40b2b0769611b2036279879d9de546e01 (patch) | |
tree | 87851ab65349c8685d5b852fed749cb9d3c1ee0b /server/sonar-web/src/main/js/apps/users | |
parent | 1079262251f6118a44a5209efdaab75f26086d33 (diff) | |
download | sonarqube-93cf9ba40b2b0769611b2036279879d9de546e01.tar.gz sonarqube-93cf9ba40b2b0769611b2036279879d9de546e01.zip |
Fix eslint's issues
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users')
3 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/__tests__/Header-test.tsx b/server/sonar-web/src/main/js/apps/users/__tests__/Header-test.tsx index 0652ee008c1..eaa448f3932 100644 --- a/server/sonar-web/src/main/js/apps/users/__tests__/Header-test.tsx +++ b/server/sonar-web/src/main/js/apps/users/__tests__/Header-test.tsx @@ -29,7 +29,7 @@ it('should render correctly', () => { it('should open the user creation form', () => { const wrapper = getWrapper(); click(wrapper.find('#users-create')); - expect(wrapper.find('UserForm').exists()).toBeTruthy(); + expect(wrapper.find('UserForm').exists()).toBe(true); }); function getWrapper(props = {}) { diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/UserGroups-test.tsx b/server/sonar-web/src/main/js/apps/users/components/__tests__/UserGroups-test.tsx index c21972e1330..366fd665cf3 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/UserGroups-test.tsx +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/UserGroups-test.tsx @@ -46,7 +46,7 @@ it('should show all groups', () => { it('should open the groups form', () => { const wrapper = getWrapper(); click(wrapper.find('.js-user-groups')); - expect(wrapper.find('GroupsForm').exists()).toBeTruthy(); + expect(wrapper.find('GroupsForm').exists()).toBe(true); }); function getWrapper(props = {}) { diff --git a/server/sonar-web/src/main/js/apps/users/components/__tests__/UserListItem-test.tsx b/server/sonar-web/src/main/js/apps/users/components/__tests__/UserListItem-test.tsx index 0963216f472..80a3a11a5cf 100644 --- a/server/sonar-web/src/main/js/apps/users/components/__tests__/UserListItem-test.tsx +++ b/server/sonar-web/src/main/js/apps/users/components/__tests__/UserListItem-test.tsx @@ -47,13 +47,13 @@ it('should display a change password button', () => { shallowRender({ organizationsEnabled: true }) .find('UserGroups') .exists() - ).toBeFalsy(); + ).toBe(false); }); it('should open the correct forms', () => { const wrapper = shallowRender(); click(wrapper.find('.js-user-tokens')); - expect(wrapper.find('TokensFormModal').exists()).toBeTruthy(); + expect(wrapper.find('TokensFormModal').exists()).toBe(true); }); function shallowRender(props: Partial<UserListItem['props']> = {}) { |