Skip to content

Commit fb1f842

Browse files
Update template
1 parent 45201ba commit fb1f842

File tree

3 files changed

+34
-15
lines changed

3 files changed

+34
-15
lines changed

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,3 @@ You can either help by picking up an existing issue or submit a new one if you h
6565
## Acknowledgements
6666

6767
Here is a list of people and projects that helped this project in some way.
68-
69-
---
70-
71-
- [Code of Conduct](CODE_OF_CONDUCT.md)
72-
- [Security Policy](SECURITY.md)
73-
- [Support](SUPPORT.md)
74-
- [License](LICENSE)

examples/General.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<#
2+
.SYNOPSIS
3+
This is a general example of how to use the module.
4+
#>
5+
6+
# Import the module
7+
Import-Module -Name 'PSModule'
8+
9+
# Define the path to the font file
10+
$FontFilePath = 'C:\Fonts\CodeNewRoman\CodeNewRomanNerdFontPropo-Regular.tff'
11+
12+
# Install the font
13+
Install-Font -Path $FontFilePath -Verbose
14+
15+
# List installed fonts
16+
Get-Font -Name 'CodeNewRomanNerdFontPropo-Regular'
17+
18+
# Uninstall the font
19+
Get-Font -Name 'CodeNewRomanNerdFontPropo-Regular' | Uninstall-Font -Verbose

tests/PSModule.Tests.ps1.ps1

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
1-
Describe "PSModule.Tests.ps1" {
2-
It "Should be able to import the module" {
3-
Import-Module -Name 'PSModule'
4-
Get-Module -Name 'PSModule' | Should -Not -BeNullOrEmpty
5-
Write-Verbose (Get-Module -Name 'PSModule' | Out-String) -Verbose
1+
Describe 'PSModule' {
2+
Context 'Module' {
3+
It 'The module should be available' {
4+
Get-Module -Name 'PSModule' -ListAvailable | Should -Not -BeNullOrEmpty
5+
Write-Verbose (Get-Module -Name 'PSModule' -ListAvailable | Out-String) -Verbose
6+
}
7+
It 'The module should be importable' {
8+
{ Import-Module -Name 'PSModule' } | Should -Not -Throw
9+
}
610
}
7-
It "Should be able to call the function" {
8-
Test-PSModuleTest -Name 'World' | Should -Be "Hello, World!"
9-
Write-Verbose (Test-PSModuleTest -Name 'World' | Out-String) -Verbose
11+
12+
Context "Function 'Test-PSModuleTest'" {
13+
It 'Should be able to call the function' {
14+
Test-PSModuleTest -Name 'World' | Should -Be 'Hello, World!'
15+
Write-Verbose (Test-PSModuleTest -Name 'World' | Out-String) -Verbose
16+
}
1017
}
1118
}

0 commit comments

Comments
 (0)