Skip to content

Commit 5520da1

Browse files
authored
webidl: update enum test to unwrap constructor results
Update the enum test to match the new constructor return values
1 parent fac73a2 commit 5520da1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/webidl/tests/all/enums.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ fn top_level_enum() {
5151
5252
#[wasm_bindgen]
5353
pub fn test() {
54-
let circle = Shape::new(ShapeType::Circle);
55-
let square = Shape::new(ShapeType::Square);
54+
let circle = Shape::new(ShapeType::Circle).unwrap();
55+
let square = Shape::new(ShapeType::Square).unwrap();
5656
assert!(circle.is_circle());
5757
assert!(!circle.is_square());
5858
assert!(square.is_square());

0 commit comments

Comments
 (0)