File tree Expand file tree Collapse file tree 3 files changed +34
-15
lines changed
Expand file tree Collapse file tree 3 files changed +34
-15
lines changed Original file line number Diff line number Diff 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
6767Here 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 )
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments