mirror of
https://github.com/dfinke/ImportExcel.git
synced 2025-12-15 15:53:32 +00:00
refactored the supporting file list that gets copied so it can be tested
This commit is contained in:
10
__tests__/ImportExcelFileList.tests.ps1
Normal file
10
__tests__/ImportExcelFileList.tests.ps1
Normal file
@@ -0,0 +1,10 @@
|
||||
Describe "ImportExcel File List" {
|
||||
It "All files should exist" {
|
||||
$fileList = Get-Content "$PSScriptRoot\..\filelist.txt"
|
||||
|
||||
foreach ($file in $fileList) {
|
||||
$targetFile = "$PSScriptRoot\..\$file"
|
||||
Test-Path $targetFile | Should Be $true
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user