fix: add type annotation to fix TS2345 error in integration test
The credentialIncludes array was missing a type annotation, causing TypeScript to infer it as never[] and reject string pushes.
This commit is contained in:
parent
4924300074
commit
2df30281e1
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ describe('git-config-helper integration tests', () => {
|
||||||
const includeIfKeysAfter = await git.tryGetConfigKeys(
|
const includeIfKeysAfter = await git.tryGetConfigKeys(
|
||||||
'^includeIf\\.gitdir:'
|
'^includeIf\\.gitdir:'
|
||||||
)
|
)
|
||||||
const credentialIncludes = []
|
const credentialIncludes: string[] = []
|
||||||
for (const key of includeIfKeysAfter) {
|
for (const key of includeIfKeysAfter) {
|
||||||
const values = await git.tryGetConfigValues(key)
|
const values = await git.tryGetConfigValues(key)
|
||||||
for (const value of values) {
|
for (const value of values) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue