Skip to content

Commit

Permalink
Fix mock output
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Mar 5, 2019
1 parent 572da1a commit 31c6a17
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 4.7.1 (March 5, 2019)

- Fix Mock outputting command metadata

## 4.7.0 (March 3, 2019)

- Fix code coverage when there are multiple packages [#1244](https://github.com/pester/Pester/pull/1244)
Expand Down
9 changes: 9 additions & 0 deletions Functions/Mock.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2198,3 +2198,12 @@ InModuleScope Pester {
}
}
}

Describe "Mock definition output" {
It "Outputs nothing" {

function a () {}
$output = Mock a { }
$output | Should -Be $null
}
}
2 changes: 0 additions & 2 deletions Functions/Mock.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1562,8 +1562,6 @@ function Repair-ConflictingParameters {
$Metadata.Parameters.Add($newName, $paramMetadata)
}
}

$Metadata
}

function Reset-ConflictingParameters {
Expand Down
4 changes: 2 additions & 2 deletions Pester.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ModuleToProcess = 'Pester.psm1'

# Version number of this module.
ModuleVersion = '4.7.0'
ModuleVersion = '4.7.1'

# ID used to uniquely identify this module
GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71'
Expand Down Expand Up @@ -127,7 +127,7 @@
LicenseUri = "https://www.apache.org/licenses/LICENSE-2.0.html"

# Release notes for this particular version of the module
ReleaseNotes = 'https://github.com/pester/Pester/releases/tag/4.7.0'
ReleaseNotes = 'https://github.com/pester/Pester/releases/tag/4.7.1'

# Prerelease string of this module
Prerelease = ''
Expand Down

0 comments on commit 31c6a17

Please sign in to comment.