Skip to content

Commit e7a1d8e

Browse files
committed
Fix review comments
1 parent 363aa96 commit e7a1d8e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Tests/GitHubRepositories.tests.ps1

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ try
550550
Description = $defaultRepoDesc
551551
HomePage = $defaultRepoHomePage
552552
}
553+
553554
$repo = New-GitHubRepository @newGitHubRepositoryParms
554555
}
555556

@@ -981,7 +982,8 @@ try
981982
OwnerName = $repo.owner.login
982983
RepositoryName = $repoName
983984
}
984-
$contributors = Get-GitHubRepositoryContributor @getGitHubRepositoryContributorParms
985+
986+
$contributors = @(Get-GitHubRepositoryContributor @getGitHubRepositoryContributorParms)
985987
}
986988

987989
It 'Should return objects of the correct type' {
@@ -1004,7 +1006,8 @@ try
10041006
RepositoryName = $repoName
10051007
IncludeStatistics = $true
10061008
}
1007-
$contributors = Get-GitHubRepositoryContributor @getGitHubRepositoryContributorParms
1009+
1010+
$contributors = @(Get-GitHubRepositoryContributor @getGitHubRepositoryContributorParms)
10081011
}
10091012

10101013
It 'Should return objects of the correct type' {
@@ -1032,7 +1035,8 @@ try
10321035
RepositoryName = $repoName
10331036
IncludeAnonymousContributors = $true
10341037
}
1035-
$contributors = Get-GitHubRepositoryContributor @getGitHubRepositoryContributorParms
1038+
1039+
$contributors = @(Get-GitHubRepositoryContributor @getGitHubRepositoryContributorParms)
10361040
}
10371041

10381042
It 'Should return objects of the correct type' {
@@ -1065,7 +1069,8 @@ try
10651069
OwnerName = $repo.owner.login
10661070
RepositoryName = $repoName
10671071
}
1068-
$collaborators = Get-GitHubRepositoryCollaborator @getGitHubRepositoryCollaboratorParms
1072+
1073+
$collaborators = @(Get-GitHubRepositoryCollaborator @getGitHubRepositoryCollaboratorParms)
10691074
}
10701075

10711076
It 'Should return objects of the correct type' {

0 commit comments

Comments
 (0)