File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@ {
2- ExcludeRules = @ (' PSAvoidUsingPlainTextForPassword' )
2+ ExcludeRules = @ (' PSAvoidUsingPlainTextForPassword' , ' PSAvoidUsingUsernameAndPasswordParams ' )
33}
Original file line number Diff line number Diff line change 1212RootModule = ' PSWattTime.psm1'
1313
1414# Version number of this module.
15- ModuleVersion = ' 1.0.4 .0'
15+ ModuleVersion = ' 1.0.5 .0'
1616
1717# Supported PSEditions
1818# CompatiblePSEditions = @()
@@ -114,7 +114,7 @@ PrivateData = @{
114114 # IconUri = ''
115115
116116 # ReleaseNotes of this module
117- ReleaseNotes = ' Updates to documentation and PowerShell internal help '
117+ ReleaseNotes = ' Fix return datatype for percent of each function '
118118
119119 # Prerelease string of this module
120120 # Prerelease = ''
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ function Get-WattTime {
9090 ba = $ba
9191 }
9292 $wattTime = Invoke-RestMethod - Uri ' https://api2.watttime.org/v2/index/' - Method Get - Headers $headers - Body $params - ContentType ' application/json'
93+ $wattTime.percent = [int ]($wattTime.percent )
9394 return $wattTime
9495}
9596
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ Describe "PSWattTimeTests" {
102102 }
103103
104104 It " Should return a PSCustomObject with a percent property with a value" {
105- $wattTime.percent | Should - BeOfType ' string '
105+ $wattTime.percent | Should - BeOfType ' int '
106106 }
107107 }
108108
@@ -141,7 +141,7 @@ Describe "PSWattTimeTests" {
141141 }
142142
143143 It " Should return a PSCustomObject with a percent property with a value" {
144- $wattTime.percent | Should - BeOfType ' string '
144+ $wattTime.percent | Should - BeOfType ' int '
145145 }
146146 }
147147 Context " When we register an account" {
You can’t perform that action at this time.
0 commit comments