Skip to content

Commit

Permalink
fix function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaranionjc committed Aug 29, 2023
1 parent 246075b commit 6d47f26
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jumpcloud-ADMU/Powershell/Tests/Functions.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,10 @@ Describe 'Functions' {
It 'Restart-ComputerWithDelay' {
}
}
Context 'Test SetScheduledTask'{
Context 'Test Set-ADMUScheduledTask'{
BeforeAll {
$scheduledTasks = Get-ScheduledTask | Where-Object { $_.TaskPath -notlike "*\Microsoft\Windows*" -and $_.State -ne "Disabled" -and $_.state -ne "Running" }
SetScheduledTask -op "disable" -scheduledTasks $scheduledTasks
Set-ADMUScheduledTask -op "disable" -scheduledTasks $scheduledTasks
}
It 'Should disabled tasks'{
# Disable tasks that are ready to run
Expand All @@ -526,7 +526,7 @@ Describe 'Functions' {
}
}
It 'Should Enable tasks'{
SetScheduledTask -op "enable" -scheduledTasks $scheduledTasks
Set-ADMUScheduledTask -op "enable" -scheduledTasks $scheduledTasks
# Validate that the tasks are enabled
$afterEnable = Get-ScheduledTask | Where-Object { $_.TaskPath -notlike "*\Microsoft\Windows*" -and $_.State -eq "Ready" }
# Compare $scheduledTasks and $afterDisable state should not be equal
Expand Down

0 comments on commit 6d47f26

Please sign in to comment.