Skip to content

Commit

Permalink
Rename tests (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug authored Feb 27, 2024
1 parent 5ed3a85 commit 22f9bee
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
external help file: PSModuleTest-help.xml
Module Name: PSModule.Publish
Module Name: PSModule
online version:
schema: 2.0.0
---

# Test-PSModuleTest
# Test-PSModule

## SYNOPSIS
Performs tests on a module.

## SYNTAX

```powershell
Test-PSModuleTest [-Name] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
Test-PSModule [-Name] <String> [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand All @@ -23,7 +23,7 @@ Test-PSModuleTest [-Name] <String> [-ProgressAction <ActionPreference>] [<Common

### EXAMPLE 1
```powershell
Test-PSModuleTest -Name 'World'
Test-PSModule -Name 'World'
```

"Hello, World!"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@{
RootModule = 'PSModule.Publish.psm1'
RootModule = 'PSModule.psm1'
ModuleVersion = '0.0.1'
CompatiblePSEditions = 'Core', 'Desktop'
GUID = '567bd93a-a0d5-4715-8cdf-6b5089d73065'
Expand All @@ -14,14 +14,11 @@
TypesToProcess = @()
FormatsToProcess = @()
NestedModules = @()
FunctionsToExport = 'Test-PSModuleTest'
FunctionsToExport = 'Test-PSModule'
CmdletsToExport = @()
AliasesToExport = ''
ModuleList = @()
FileList = @(
'PSModule.Publish.psd1',
'PSModule.Publish.psm1'
)
FileList = 'PSModule.psd1', 'PSModule.psm1'
PrivateData = @{
PSData = @{
Tags = 'PSEdition_Desktop', 'PSEdition_Core'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ Write-Verbose "[$scriptName] - [data] - Done"
#region - From /public
Write-Verbose "[$scriptName] - [/public] - Processing folder"

#region - From /public/Test-PSModuleTest.ps1
Write-Verbose "[$scriptName] - [/public/Test-PSModuleTest.ps1] - Importing"
#region - From /public/Test-PSModule.ps1
Write-Verbose "[$scriptName] - [/public/Test-PSModule.ps1] - Importing"

Function Test-PSModuleTest {
Function Test-PSModule {
<#
.SYNOPSIS
Performs tests on a module.
.EXAMPLE
Test-PSModuleTest -Name 'World'
Test-PSModule -Name 'World'
"Hello, World!"
#>
Expand All @@ -42,10 +42,10 @@ Function Test-PSModuleTest {
Write-Output "Hello, $Name!"
}

Write-Verbose "[$scriptName] - [/public/Test-PSModuleTest.ps1] - Done"
#endregion - From /public/Test-PSModuleTest.ps1
Write-Verbose "[$scriptName] - [/public/Test-PSModule.ps1] - Done"
#endregion - From /public/Test-PSModule.ps1

Write-Verbose "[$scriptName] - [/public] - Done"
#endregion - From /public

Export-ModuleMember -Function 'Test-PSModuleTest' -Cmdlet '' -Variable '' -Alias '*'
Export-ModuleMember -Function 'Test-PSModule' -Cmdlet '' -Variable '' -Alias '*'

0 comments on commit 22f9bee

Please sign in to comment.