wip
This commit is contained in:
parent
01de79fe11
commit
9a5693d51c
@ -9,6 +9,7 @@ BeforeAll {
|
|||||||
foreach ( $func in $PrivateFunctions) {
|
foreach ( $func in $PrivateFunctions) {
|
||||||
. $func
|
. $func
|
||||||
}
|
}
|
||||||
|
|
||||||
# Backup existing credential stores
|
# Backup existing credential stores
|
||||||
$VerbosePreference = "Continue"
|
$VerbosePreference = "Continue"
|
||||||
Write-Verbose "Backup private Credential Store..."
|
Write-Verbose "Backup private Credential Store..."
|
||||||
|
@ -1,17 +0,0 @@
|
|||||||
$RepoRoot = (Get-Item -Path (Get-GitDirectory) -Force).Parent | Select-Object -ExpandProperty 'FullName'
|
|
||||||
Write-Verbose -Message ('RepoRoot: {0}' -f $RepoRoot) -Verbose
|
|
||||||
|
|
||||||
$ManifestFilePath = Join-Path -Path $RepoRoot -ChildPath '/src/PSCredentialStore.psd1'
|
|
||||||
Write-Verbose -Message ("ManifestFilePath: {0}" -f $ManifestFilePath) -Verbose
|
|
||||||
Describe "Pre-Flight module tests" {
|
|
||||||
Context "Manifest file related" {
|
|
||||||
It "Test the parsed file itself" {
|
|
||||||
{ Test-ModuleManifest -Path $ManifestFilePath -Verbose } | Should -Not -Throw
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Context "Module consistency tests" {
|
|
||||||
It "Importing should work" {
|
|
||||||
{ Import-Module -Name $ManifestFilePath -Global -Force -Verbose } | Should -Not -Throw
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user