Skip to content

Commit bb9b1a4

Browse files
Address PR review feedback: use strict null assertions for nil tests
1 parent 575c4e1 commit bb9b1a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Lua.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Describe 'ConvertFrom-Lua' {
5555

5656
It 'Converts Lua nil to PowerShell $null' {
5757
$result = ConvertFrom-Lua -InputObject 'nil'
58-
$result | Should -BeNullOrEmpty
58+
$result | Should -Be $null
5959
}
6060
}
6161

@@ -417,7 +417,7 @@ DB2 = { y = 2 }
417417
It 'Parses assignment with nil value' {
418418
$lua = 'empty = nil'
419419
$result = ConvertFrom-Lua -InputObject $lua -AsHashtable
420-
$result.empty | Should -BeNullOrEmpty
420+
$result.empty | Should -Be $null
421421
}
422422

423423
It 'Parses assignment returning PSCustomObject by default' {
@@ -479,7 +479,7 @@ B = { val = 2 }
479479
$result | Should -BeFalse
480480

481481
$result = ConvertFrom-Lua -InputObject 'nil'
482-
$result | Should -BeNullOrEmpty
482+
$result | Should -Be $null
483483
}
484484
}
485485

0 commit comments

Comments
 (0)