Tests/Get-ChromeVersion.Tests.ps1
<# Get-Module JBOAPPLS | Remove-Module -Force
Push-Location .. Import-Module .\JBOAPPLS.psm1 -Force Pop-Location $JsonMockData = Get-Content -Path .\Tests\MockedTestObjects.json -Raw $Mocks = ConvertFrom-Json $JsonMockData Describe "Get-ChromeVersion Tests" { Context 'Function Output' { $ContextMock = $Mocks.'Get-ChromeVersion'.StatusUpToDate.ChromeVersion Mock Get-ChromeVersion { $ContextMock } It "returns the correct status" { (Get-ChromeVersion).Status | Should -Be $mocks.'get-chromeversion'.statusuptodate.chromeversion.Status } } } #> |