refactor: make this a valid nuget package for Powershell gallery
feat: add build environment scripts
This commit is contained in:
parent
69c2684ee7
commit
46b1b7c83f
38 changed files with 200 additions and 42 deletions
23
tests/StringHelper.Tests.ps1
Executable file
23
tests/StringHelper.Tests.ps1
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env pwsh
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
BeforeAll {
|
||||
Import-Module (Join-Path $PSScriptRoot '..' 'src' `
|
||||
'PSConfluencePublisher.psd1')
|
||||
|
||||
}
|
||||
|
||||
Describe 'Get-StringHash' `
|
||||
{
|
||||
Context 'default' `
|
||||
{
|
||||
It 'works' `
|
||||
{
|
||||
$result = Get-StringHash 'foobar'
|
||||
|
||||
$result.Hash | Should -Be (
|
||||
'C3AB8FF13720E8AD9047DD3946' + `
|
||||
'6B3C8974E592C2FA383D4A3960714CAEF0C4F2')
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue