mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-13 18:02:30 +00:00
More testing
This commit is contained in:
parent
de5f83f54c
commit
b69c68ef24
1 changed files with 20 additions and 26 deletions
|
|
@ -109,37 +109,31 @@ Describe "SnipeitPS" {
|
|||
}
|
||||
}
|
||||
|
||||
# The CI changes I'm testng now will render this section obsolete,
|
||||
# as it should automatically patch the module manifest file with all
|
||||
# exported function names.
|
||||
# Leaving the code here for the moment while I can ensure those
|
||||
# features are working correctly.
|
||||
|
||||
#
|
||||
# Context "Function checking" {
|
||||
# $functionFiles = Get-ChildItem $publicFunctions -Filter *.ps1 |
|
||||
# Select-Object -ExpandProperty BaseName |
|
||||
# Where-Object { $_ -notlike "*.Tests" }
|
||||
Context "Function checking" {
|
||||
$functionFiles = Get-ChildItem $publicFunctions -Filter *.ps1 |
|
||||
Select-Object -ExpandProperty BaseName |
|
||||
Where-Object { $_ -notlike "*.Tests" }
|
||||
|
||||
# $internalFiles = Get-ChildItem $internalFunctions -Filter *.ps1 |
|
||||
# Select-Object -ExpandProperty BaseName |
|
||||
# Where-Object { $_ -notlike "*.Tests" }
|
||||
$internalFiles = Get-ChildItem $internalFunctions -Filter *.ps1 |
|
||||
Select-Object -ExpandProperty BaseName |
|
||||
Where-Object { $_ -notlike "*.Tests" }
|
||||
|
||||
# #$exportedFunctions = $script:manifest.ExportedFunctions.Values.Name
|
||||
# $exportedFunctions = $script:manifest.FunctionsToExport
|
||||
#$exportedFunctions = $script:manifest.ExportedFunctions.Values.Name
|
||||
$exportedFunctions = $script:manifest.FunctionsToExport
|
||||
|
||||
# foreach ($f in $functionFiles) {
|
||||
# It "Exports $f" {
|
||||
# $exportedFunctions -contains $f | Should -Be $true
|
||||
# }
|
||||
# }
|
||||
foreach ($f in $functionFiles) {
|
||||
It "Exports $f" {
|
||||
$exportedFunctions -contains $f | Should -Be $true
|
||||
}
|
||||
}
|
||||
|
||||
# foreach ($f in $internalFiles) {
|
||||
# It "Does not export $f" {
|
||||
# $exportedFunctions -contains $f | Should -Be $false
|
||||
# }
|
||||
# }
|
||||
# }
|
||||
foreach ($f in $internalFiles) {
|
||||
It "Does not export $f" {
|
||||
$exportedFunctions -contains $f | Should -Be $false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Context "Style checking" {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue