diff options
author | Guillaume Peoc'h <guillaume.peoch@sonarsource.com> | 2022-04-27 11:31:43 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-04-29 20:03:19 +0000 |
commit | 5a12c30d5ff075b326c6c96ff19b58868a61d41d (patch) | |
tree | 853e552d515dfdd83f98330bf719a0740248736f /server/sonar-web/src/main/js/helpers | |
parent | 38ef03badd49880738ea9e1ab686d4e1c68247ac (diff) | |
download | sonarqube-5a12c30d5ff075b326c6c96ff19b58868a61d41d.tar.gz sonarqube-5a12c30d5ff075b326c6c96ff19b58868a61d41d.zip |
SONAR-16263 Update Token type in list
Diffstat (limited to 'server/sonar-web/src/main/js/helpers')
-rw-r--r-- | server/sonar-web/src/main/js/helpers/mocks/token.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/helpers/mocks/token.ts b/server/sonar-web/src/main/js/helpers/mocks/token.ts new file mode 100644 index 00000000000..b44fe21df1c --- /dev/null +++ b/server/sonar-web/src/main/js/helpers/mocks/token.ts @@ -0,0 +1,30 @@ +/* + * SonarQube + * Copyright (C) 2009-2022 SonarSource SA + * mailto:info AT sonarsource DOT com + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + */ + +import { TokenType, UserToken } from '../../types/token'; + +export function mockUserToken(overrides: Partial<UserToken> = {}): UserToken { + return { + name: 'Token name', + createdAt: '2019-06-14T09:45:52+0200', + type: TokenType.User, + ...overrides + }; +} |