File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments