Skip to content

Commit

Permalink
Get-TssFolder - update class output type and test
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmelton committed Dec 28, 2020
1 parent 6e5b7c3 commit 3bfbded
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/Get-TssFolder.ps1
Expand Up @@ -28,7 +28,7 @@
Requires TssSession object returned by New-TssSession
#>
[cmdletbinding()]
[OutputType('TssFolder')]
[OutputType('TssFolderTemplate')]
param(
# TssSession object created by New-TssSession for auth
[Parameter(Mandatory,
Expand Down Expand Up @@ -86,7 +86,7 @@
return $restResponse
}
if ($restResponse) {
. $GetTssFolderObject $restResponse
. $GetTssFolderTemplateObject $restResponse
}
}
} else {
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/functions/Get-TssFolder.Tests.ps1
Expand Up @@ -17,4 +17,9 @@
$_ | Should -BeNullOrEmpty
}
}
Context "Command specific details" {
It "$commandName should set OutputType to TssFolderTemplate" -TestCases $commandDetails {
$_.OutputType.Name | Should -Be 'TssFolderTemplate'
}
}
}

0 comments on commit 3bfbded

Please sign in to comment.