Skip to content

Commit 97d9880

Browse files
authored
ResourceBase: Increase code coverage (#3)
1 parent 13e4e9d commit 97d9880

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## [Unreleased]
77

8+
### Fixed
9+
10+
- `ResourceBase`
11+
- Increased code coverage.
12+
813
## [1.0.0] - 2022-12-31
914

1015
### Added

tests/Unit/Classes/ResourceBase.Tests.ps1

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,12 @@ Describe 'ResourceBase' {
5757
}
5858
}
5959

60-
# TODO: This should be uncommented when the PR in Sampler is merged: https://github.com/gaelcolas/Sampler/pull/408
61-
# It 'Should have a constructor that takes one string argument' {
62-
# InModuleScope -ScriptBlock {
63-
# $instance = [ResourceBase]::new($TestDrive)
64-
# $instance | Should -Not -BeNullOrEmpty
65-
# }
66-
# }
60+
It 'Should have a constructor that takes one string argument' {
61+
InModuleScope -ScriptBlock {
62+
$instance = [ResourceBase]::new($TestDrive)
63+
$instance | Should -Not -BeNullOrEmpty
64+
}
65+
}
6766

6867
It 'Should be the correct type' {
6968
InModuleScope -ScriptBlock {

0 commit comments

Comments
 (0)