Skip to content

Commit f277569

Browse files
author
James Brundage
committed
Updating tests for New Keyword
1 parent 8fa751a commit f277569

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Transpilers/Keywords/New.tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ describe "'new' keyword" {
88
it "Can also ::Parse a type if it cannot be constructed" {
99
Invoke-PipeScript {
1010
$byte = new byte 254
11-
}
11+
$byte.GetType()
12+
} | Should -be ([byte])
1213
}
1314
it "Can can also ::Create an object" {
1415
Invoke-PipeScript {

0 commit comments

Comments
 (0)