Skip to content

Commit 7bc5f2c

Browse files
Update test
1 parent b2d30bd commit 7bc5f2c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.eslintrc.cjs

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = {
2121
'plugin:tailwindcss/recommended',
2222
],
2323
plugins: ['@vitest', 'jsx-a11y', 'import'],
24+
2425
globals: {
2526
vi: true,
2627
},
@@ -504,9 +505,10 @@ module.exports = {
504505
'no-restricted-syntax': [
505506
'warn',
506507
{
507-
selector: "Literal[value=/\\bGithub\\b|\\bGitlab\\b/]",
508+
selector: "JSXText[value=/\\bGithub\\b|\\bGitlab\\b/]",
508509
message: "Use correct casing (GitHub, GitLab)"
509510
}
510511
]
512+
511513
},
512514
}

src/pages/AccountSettings/tabs/Admin/GithubIntegrationSection/GithubIntegrationSection.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function GithubIntegrationSection() {
4747

4848
return (
4949
<div className="flex flex-col gap-2">
50-
<h2 className="text-lg font-semibold"> Gitlab Integration </h2>
50+
<h2 className="text-lg font-semibold">GitHub Integration</h2>
5151
<GithubIntegrationCopy integrationId={accountDetails?.integrationId} />
5252
</div>
5353
)

src/pages/AccountSettings/tabs/Admin/GithubIntegrationSection/GithubIntegrationSection.test.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ describe('GithubIntegrationSection', () => {
146146
render(<GithubIntegrationSection />, { wrapper: wrapper() })
147147

148148
const link = await screen.findByRole('link', {
149-
name: /Github/i,
149+
name: /GitHub/i,
150150
})
151151
expect(link).toBeInTheDocument()
152152
})

0 commit comments

Comments
 (0)