Skip to content

Commit

Permalink
Fix test-utils getToken function indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
gorkem committed Mar 30, 2024
1 parent cde2fb3 commit 0c6726c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
1 change: 0 additions & 1 deletion __tests__/kit-release.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ describe('getReleases', () => {
expect(matchingRelease?.tag).toBe('v0.1.0')
})
})

21 changes: 10 additions & 11 deletions __tests__/test-utils.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@

export function getToken(): string {
const token = process.env['GITHUB_TOKEN'] || ''
if (!token) {
/* eslint-disable-next-line no-console */
console.warn(
'Skipping GitHub tests. Set $GITHUB_TOKEN to run GitHub tests.'
)
}
return token
}
const token = process.env['GITHUB_TOKEN'] || ''
if (!token) {
/* eslint-disable-next-line no-console */
console.warn(
'Skipping GitHub tests. Set $GITHUB_TOKEN to run GitHub tests.'
)
}

return token
}

0 comments on commit 0c6726c

Please sign in to comment.