diff --git a/DoTests.ps1 b/DoTests.ps1 index 97f9109..5db09f7 100644 --- a/DoTests.ps1 +++ b/DoTests.ps1 @@ -4,7 +4,7 @@ if ($null -eq (Get-Module -ListAvailable pester)) { Install-Module -Name Pester -Repository PSGallery -Force -Scope CurrentUser } -$result = Invoke-Pester -Script $PSScriptRoot\__tests__ -Verbose -PassThru +$result = Invoke-Pester -Script $PSScriptRoot/__tests__ -Verbose -PassThru if ($result.FailedCount -gt 0) { throw "$($result.FailedCount) tests failed." diff --git a/__tests__/nameit.tests.ps1 b/__tests__/nameit.tests.ps1 index 96fd46e..8cc21d0 100644 --- a/__tests__/nameit.tests.ps1 +++ b/__tests__/nameit.tests.ps1 @@ -1,4 +1,6 @@ -Import-Module $PSScriptRoot/../NameIt.psd1 +$module = Resolve-Path "$PSScriptRoot/../NameIt.psd1" + +Import-Module $module Describe "NameIT Tests" { It "Should generate five entries" {