Skip to content

Commit

Permalink
(chocolatey#66) Removes or Updates Previous Tests
Browse files Browse the repository at this point in the history
These were not terribly useful now we had the new tests in place.

Also removes the non-existent function `Get-CCMDeploymentStepResult` from the PSD1, after improving the "has all the functions available" test (which showed this disparity).
  • Loading branch information
JPRuskin committed May 6, 2023
1 parent bc38a0c commit e1cd60f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 292 deletions.
1 change: 0 additions & 1 deletion src/ChocoCCM.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
'Remove-CCMGroupMember'
'Get-CCMDeployment'
'Get-CCMDeploymentStep'
'Get-CCMDeploymentStepResult'
'New-CCMDeployment'
'New-CCMDeploymentStep'
'Set-CCMDeploymentStep'
Expand Down
9 changes: 7 additions & 2 deletions src/Tests/chococcm.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ Describe "Module Import Checks" {
{ Import-Module $module } | Should -Not -Throw
}

It "Should return all public functions" {
{ Get-Command -Module ChocoCCM } | Should -Not -Throw
It "Should export all expected public functions" {
$ExportedFunctions = (Get-Command -Module ChocoCCM -CommandType Function).Name | Sort-Object

$DataFile = Import-Metadata -Path "$PSScriptRoot\..\ChocoCCM.psd1"
$ExpectedFunctions = $DataFile.FunctionsToExport | Sort-Object

$ExportedFunctions | Should -Be $ExpectedFunctions
}
}
56 changes: 0 additions & 56 deletions src/Tests/computer.tests.ps1

This file was deleted.

143 changes: 0 additions & 143 deletions src/Tests/group.tests.ps1

This file was deleted.

90 changes: 0 additions & 90 deletions src/Tests/software.tests.ps1

This file was deleted.

0 comments on commit e1cd60f

Please sign in to comment.