mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-16 11:15:46 +00:00
Tests: fix indent/align (with Visual Formatter Code)
This commit is contained in:
parent
c8e0a96690
commit
19afd20ccd
6 changed files with 51 additions and 51 deletions
|
|
@ -88,7 +88,7 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
|
|
||||||
Context -Name "Building URI components" -Fixture {
|
Context -Name "Building URI components" -Fixture {
|
||||||
It "Should give a basic hashtable" {
|
It "Should give a basic hashtable" {
|
||||||
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'param1' = 1}
|
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'param1' = 1 }
|
||||||
|
|
||||||
$URIComponents | Should -BeOfType [hashtable]
|
$URIComponents | Should -BeOfType [hashtable]
|
||||||
$URIComponents.Keys.Count | Should -BeExactly 2
|
$URIComponents.Keys.Count | Should -BeExactly 2
|
||||||
|
|
@ -100,7 +100,7 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should add a single ID parameter to the segments" {
|
It "Should add a single ID parameter to the segments" {
|
||||||
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'id' = 123}
|
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'id' = 123 }
|
||||||
|
|
||||||
$URIComponents | Should -BeOfType [hashtable]
|
$URIComponents | Should -BeOfType [hashtable]
|
||||||
$URIComponents.Keys.Count | Should -BeExactly 2
|
$URIComponents.Keys.Count | Should -BeExactly 2
|
||||||
|
|
@ -111,7 +111,7 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should add multiple IDs to the parameters id__in" {
|
It "Should add multiple IDs to the parameters id__in" {
|
||||||
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'id' = "123", "456"}
|
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'id' = "123", "456" }
|
||||||
|
|
||||||
$URIComponents | Should -BeOfType [hashtable]
|
$URIComponents | Should -BeOfType [hashtable]
|
||||||
$URIComponents.Keys.Count | Should -BeExactly 2
|
$URIComponents.Keys.Count | Should -BeExactly 2
|
||||||
|
|
@ -123,7 +123,7 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should skip a particular parameter name" {
|
It "Should skip a particular parameter name" {
|
||||||
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'param1' = 1; 'param2' = 2} -SkipParameterByName 'param2'
|
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'param1' = 1; 'param2' = 2 } -SkipParameterByName 'param2'
|
||||||
|
|
||||||
$URIComponents | Should -BeOfType [hashtable]
|
$URIComponents | Should -BeOfType [hashtable]
|
||||||
$URIComponents.Keys.Count | Should -BeExactly 2
|
$URIComponents.Keys.Count | Should -BeExactly 2
|
||||||
|
|
@ -136,7 +136,7 @@ Describe "Helpers tests" -Tag 'Core', 'Helpers' -Fixture {
|
||||||
}
|
}
|
||||||
|
|
||||||
It "Should add a query (q) parameter" {
|
It "Should add a query (q) parameter" {
|
||||||
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'query' = 'mytestquery'}
|
$URIComponents = BuildURIComponents -URISegments @('segment1', 'segment2') -ParametersDictionary @{'query' = 'mytestquery' }
|
||||||
|
|
||||||
$URIComponents | Should -BeOfType [hashtable]
|
$URIComponents | Should -BeOfType [hashtable]
|
||||||
$URIComponents.Keys.Count | Should -BeExactly 2
|
$URIComponents.Keys.Count | Should -BeExactly 2
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue