Skip to content

Commit 563fef2

Browse files
Fix: Fix -Pull test in Generate-GitBranches.Tests.ps1 (#195)
1 parent 7d2d626 commit 563fef2

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

Generate-GitBranches.Tests.ps1

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ Describe "Generate-GitBranches.ps1" {
88

99
$games = Get-Content $PSScriptRoot/games.json -Encoding utf8 | ConvertFrom-Json -AsHashtable
1010
$remote = 'origin'
11-
$remoteUrl = git remote get-url $
1211

1312
$expectedFiles = @(
1413
'.env'
@@ -20,6 +19,17 @@ Describe "Generate-GitBranches.ps1" {
2019
'notify.sh'
2120
'update/Dockerfile'
2221
)
22+
$expectedRemoteFiles = @(
23+
'.env'
24+
'.gitignore'
25+
'.gitlab-ci.yml'
26+
'.state'
27+
'.trigger'
28+
'build.sh'
29+
'build/Dockerfile'
30+
'notify.sh'
31+
'update/Dockerfile'
32+
)
2333
}
2434

2535
AfterEach {
@@ -83,7 +93,7 @@ Describe "Generate-GitBranches.ps1" {
8393
$branches = git branch | % { $_.Replace('*', '').Trim() } | ? { $_ -match '^steam-' }
8494
$branches.Count | Should -Be 1
8595
foreach ($b in $branches) {
86-
git ls-tree -r --name-only $b | Should -Be $expectedFiles
96+
git ls-tree -r --name-only $b | Should -Be $expectedRemoteFiles
8797
}
8898
}
8999
}

0 commit comments

Comments
 (0)