Skip to content

Commit 4e0ab70

Browse files
committed
Fixed Pester
1 parent facb7d8 commit 4e0ab70

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Tests/RedstoneClassAndEnums.Tests.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
77
Publisher = 'MyPublisher'
88
Product = 'MyProduct'
99
Version = '1.2.3'
10-
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName } }
10+
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName.Replace('.Tests', '') } }
1111
Run = {}
1212
}
1313
'Publisher Change' = @{
1414
Publisher = 'YourPublisher'
1515
Product = 'MyProduct'
1616
Version = '1.2.3'
17-
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName } }
17+
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName.Replace('.Tests', '') } }
1818
Run = {
1919
$script:Redstone.Publisher = 'YourPublisher'
2020
}
@@ -23,7 +23,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
2323
Publisher = 'MyPublisher'
2424
Product = 'YourProduct'
2525
Version = '1.2.3'
26-
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName } }
26+
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName.Replace('.Tests', '') } }
2727
Run = {
2828
$script:Redstone.Product = 'YourProduct'
2929
}
@@ -32,7 +32,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
3232
Publisher = 'MyPublisher'
3333
Product = 'MyProduct'
3434
Version = '2.3.4'
35-
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName } }
35+
Action = { if ($instantiation.Name -eq 'FourParams') { 'test' } else { ([IO.FileInfo] $PSCommandPath).BaseName.Replace('.Tests', '') } }
3636
Run = {
3737
$script:Redstone.Version = '2.3.4'
3838
}
@@ -57,7 +57,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
5757
$script:publisher = 'MyPublisher'
5858
$script:product = 'MyProduct'
5959
$script:version = '1.2.3'
60-
$script:action = ([IO.FileInfo] $PSCommandPath).BaseName
60+
$script:action = ([IO.FileInfo] $PSCommandPath).BaseName.Replace('.Tests', '')
6161
[IO.FileInfo] $json = [IO.Path]::Combine($PWD.Path, 'settings.json')
6262
$jsonData = @{
6363
Publisher = $script:publisher
@@ -79,7 +79,7 @@ Describe 'RedstoneClassAndEnums' -Tag 'Class' {
7979
$script:publisher = 'MyPublisher'
8080
$script:product = 'MyProduct'
8181
$script:version = '1.2.3'
82-
$script:action = ([IO.FileInfo] $PSCommandPath).BaseName
82+
$script:action = ([IO.FileInfo] $PSCommandPath).BaseName.Replace('.Tests', '')
8383
[IO.FileInfo] $json = [IO.Path]::Combine($PSScriptRoot, 'settings.json')
8484
$jsonData = @{
8585
Publisher = $script:publisher

0 commit comments

Comments
 (0)