File tree Expand file tree Collapse file tree 1 file changed +0
-38
lines changed
test/PublishPSResourceTests Expand file tree Collapse file tree 1 file changed +0
-38
lines changed Original file line number Diff line number Diff line change @@ -46,44 +46,6 @@ Describe "Test Compress-PSResource" -tags 'CI' {
4646 BeforeAll {
4747 Get-NewPSResourceRepositoryFile
4848
49- $testDir = (get-item $psscriptroot ).parent.FullName
50-
51- function CreateTestModule
52- {
53- param (
54- [string ] $Path = " $TestDrive " ,
55- [string ] $ModuleName = ' TestModule'
56- )
57-
58- $modulePath = Join-Path - Path $Path - ChildPath $ModuleName
59- $moduleMan = Join-Path $modulePath - ChildPath ($ModuleName + ' .psd1' )
60- $moduleSrc = Join-Path $modulePath - ChildPath ($ModuleName + ' .psm1' )
61-
62- if ( Test-Path - Path $modulePath ) {
63- Remove-Item - Path $modulePath - Recurse - Force
64- }
65-
66- $null = New-Item - Path $modulePath - ItemType Directory - Force
67-
68- @'
69- @{{
70- RootModule = "{0}.psm1"
71- ModuleVersion = '1.0.0'
72- Author = 'None'
73- Description = 'None'
74- GUID = '0c2829fc-b165-4d72-9038-ae3a71a755c1'
75- FunctionsToExport = @('Test1')
76- RequiredModules = @('NonExistentModule')
77- }}
78- '@ -f $ModuleName | Out-File - FilePath $moduleMan
79-
80- @'
81- function Test1 {
82- Write-Output 'Hello from Test1'
83- }
84- '@ | Out-File - FilePath $moduleSrc
85- }
86-
8749 # Register temporary repositories
8850 $tmpRepoPath = Join-Path - Path $TestDrive - ChildPath " tmpRepoPath"
8951 New-Item $tmpRepoPath - Itemtype directory - Force
You can’t perform that action at this time.
0 commit comments