mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Alpine validation changes (#10428)
This commit is contained in:
1 parent
8b9f4124ce
commit
3943f18c28
9 files changed
+69
-8
No files matched your search
@@ -29,7 +29,12 @@ Describe "Get-Date DRT Unit Tests" -Tags "CI" {
|
||||
|
||||
$seconds | Should -Be "1577836800"
|
||||
if ($isLinux) {
|
||||
$seconds | Should -Be (date --date='01/01/2020 UTC' +%s)
|
||||
$dateString = "01/01/2020 UTC"
|
||||
if ( (Get-PlatformInfo) -eq "alpine" ) {
|
||||
$dateString = "2020-01-01"
|
||||
}
|
||||
$expected = date --date=${dateString} +%s
|
||||
$seconds | Should -Be $expected
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user