mirror of
https://github.com/snazy2000/SnipeitPS.git
synced 2025-12-12 17:32:30 +00:00
Update SnipeItPS.Tests.ps1
This commit is contained in:
parent
3266e6ae91
commit
4ae8b11e10
1 changed files with 2 additions and 3 deletions
|
|
@ -4,7 +4,6 @@ $here = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|||
$projectRoot = Split-Path -Parent $here
|
||||
$moduleRoot = "$projectRoot\SnipeitPS"
|
||||
|
||||
$manifestFile = "$moduleRoot\SnipeitPS.psd1"
|
||||
$changelogFile = "$projectRoot\CHANGELOG.md"
|
||||
$appveyorFile = "$projectRoot\appveyor.yml"
|
||||
$publicFunctions = "$moduleRoot\Public"
|
||||
|
|
@ -53,7 +52,7 @@ Describe "SnipeitPS" {
|
|||
|
||||
It "Includes a valid manifest file" {
|
||||
{
|
||||
$script:manifest = Test-ModuleManifest -Path $script:manifestFile -ErrorAction Stop -WarningAction SilentlyContinue
|
||||
$script:manifest = Test-ModuleManifest -Path "$moduleRoot\SnipeitPS.psd1" -ErrorAction Stop -WarningAction SilentlyContinue
|
||||
} | Should -Not Throw
|
||||
}
|
||||
|
||||
|
|
@ -63,7 +62,7 @@ Describe "SnipeitPS" {
|
|||
# As a temp workaround, we'll just read the manifest as a raw hashtable.
|
||||
# Credit to this workaround comes from here:
|
||||
# https://psescape.azurewebsites.net/pester-testing-your-module-manifest/
|
||||
$script:manifest = Invoke-Expression (Get-Content $script:manifestFile -Raw)
|
||||
$script:manifest = Invoke-Expression (Get-Content "$moduleRoot\SnipeitPS.psd1" -Raw)
|
||||
|
||||
It "Manifest file includes the correct root module" {
|
||||
$script:manifest.RootModule | Should -Be 'SnipeitPS'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue