From 2fcb7a57a25f61de917978d61bd77a992bc58f47 Mon Sep 17 00:00:00 2001 From: dfinke Date: Tue, 6 Apr 2021 19:37:07 -0400 Subject: [PATCH] tweak tests for path returned #1014 --- __tests__/Get-ExcelFileSummary.Tests.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/Get-ExcelFileSummary.Tests.ps1 b/__tests__/Get-ExcelFileSummary.Tests.ps1 index feb500e..38fc9eb 100644 --- a/__tests__/Get-ExcelFileSummary.Tests.ps1 +++ b/__tests__/Get-ExcelFileSummary.Tests.ps1 @@ -17,7 +17,7 @@ Describe 'All tests for Get-ExcelFileSummary' -Tag "Get-ExcelFileSummary" { $actual.Rows | Should -Be 3 $actual.Columns | Should -Be 2 $actual.Address | Should -BeExactly 'A1:B3' - $actual.Path | Should -BeExactly "$PSScriptRoot\ImportExcelTests" + $actual.Path | Should -Not -BeNullOrEmpty } It "Tests summary on xlsx with multiple sheets" { @@ -29,14 +29,14 @@ Describe 'All tests for Get-ExcelFileSummary' -Tag "Get-ExcelFileSummary" { $actual[0].Rows | Should -Be 1 $actual[0].Columns | Should -Be 4 $actual[0].Address | Should -BeExactly 'A1:D1' - $actual[0].Path | Should -BeExactly "$PSScriptRoot\ImportExcelTests" + $actual[0].Path | Should -Not -BeNullOrEmpty $actual[1].ExcelFile | Should -BeExactly 'MultipleSheets.xlsx' $actual[1].WorksheetName | Should -BeExactly 'Sheet2' $actual[1].Rows | Should -Be 2 $actual[1].Columns | Should -Be 2 $actual[1].Address | Should -BeExactly 'A1:B2' - $actual[1].Path | Should -BeExactly "$PSScriptRoot\ImportExcelTests" + $actual[1].Path | Should -Not -BeNullOrEmpty } }