From cd9a5c01227964c395af0fdbcf781276edddd687 Mon Sep 17 00:00:00 2001 From: dfinke Date: Sun, 27 May 2018 13:21:05 -0400 Subject: [PATCH] try ls --- UnitTests/ImportExcelTests/Simple.tests.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UnitTests/ImportExcelTests/Simple.tests.ps1 b/UnitTests/ImportExcelTests/Simple.tests.ps1 index f5ba8f7..9ba58d2 100644 --- a/UnitTests/ImportExcelTests/Simple.tests.ps1 +++ b/UnitTests/ImportExcelTests/Simple.tests.ps1 @@ -6,7 +6,8 @@ Describe "test" { } It "$PSScriptRoot\Simple.xlsx should exist" { - Test-Path "$PSScriptRoot\Simple.xlsx" | Should Be $true + ((ls "$PSScriptRoot\Simple.xlsx") -eq $null) | should be $false + # Test-Path "$PSScriptRoot\Simple.xlsx" | Should Be $true #$PSScriptRoot\Simple.xlsx | should be "C:\projects\importexcel\UnitTests\ImportExcelTests\Simple.xlsx" } }