refactor: adapt to nuspec requirement for gallery publishing

This commit is contained in:
Rodweil, Theodor 2023-08-07 03:45:19 +02:00
parent 2019f8c959
commit 69c2684ee7
No known key found for this signature in database
GPG key ID: F8BC1B0EB1F9CCF5
29 changed files with 84 additions and 20 deletions

21
tools/String.Tests.ps1 Executable file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env pwsh
$ErrorActionPreference = "Stop"
BeforeAll {
Import-Module (Join-Path $PSScriptRoot 'PSConfluencePublisher.psd1')
}
Describe 'Get-StringHash' `
{
Context 'default' `
{
It 'works' `
{
$result = Get-StringHash 'foobar'
$result.Hash | Should -Be (
'C3AB8FF13720E8AD9047DD3946' + `
'6B3C8974E592C2FA383D4A3960714CAEF0C4F2')
}
}
}