Skip to content

Commit

Permalink
Update New-JCPolicy.Tests.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc authored Nov 6, 2024
1 parent 2adeeac commit 4a8af08
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Describe -Tag:('JCPolicy') 'New-JCPolicy' {
Context 'New-JCPolicy should reutrn policies with the correct data types' {
It 'New-JCPolicy returns expected parameters' {
$usbTemplateLinux = $policyTemplates | Where-Object { $_.name -eq "disable_usb_storage_linux" }
$usbLinuxPolicy = New-JCPolicy -TemplateID $usbTemplateLinux.Id -Name "Pester - USB Linux $(new-randomString -NumberOfChars 8)" -Notes "usb"
$usbLinuxPolicy = New-JCPolicy -TemplateID $usbTemplateLinux.Id -Name "Pester - USB Linux $(new-randomString -NumberOfChars 8)" -disable_mtp $true -disable_afc $false -disable_mmc $false -Notes "usb"
$usbLinuxPolicy.name | Should -Not -BeNullOrEmpty
$usbLinuxPolicy.id | Should -Not -BeNullOrEmpty
$usbLinuxPolicy.values | Should -BeNullOrEmpty
Expand Down

0 comments on commit 4a8af08

Please sign in to comment.