Skip to content

Commit

Permalink
Add tests for the get function
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Jan 28, 2024
1 parent f7f8ec7 commit 4fd1f33
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions tests/tests.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Download-NerdFont -Name 'Hack Nerd Font' -Latest -AllowPrerelease -Verbose
Download-NerdFont -All
Download-NerdFont -Name 'a', 'b', 'c' -Version v3.0.0 -Verbose
Describe 'Get-NerdFont' {
It 'Function exists' {
Get-Command Get-NerdFont | Should -Not -BeNullOrEmpty
}

Install-NerdFont -Name 'Hack Nerd Font' -Latest -AllowPrerelease -Verbose
It 'Returns all fonts' {
$fonts = Get-NerdFont
Write-Verbose ($fonts | Out-String) -Verbose
$fonts | Should -Not -BeNullOrEmpty
}
}

0 comments on commit 4fd1f33

Please sign in to comment.