File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments