Skip to content

Commit

Permalink
Fix mouse up error message
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Bespalov <[email protected]>
  • Loading branch information
inancgumus and olegbespalov committed Feb 19, 2025
1 parent 4fff352 commit 77f1fe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/js/modules/k6/browser/browser/mouse_mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func mapMouse(vu moduleVU, m *common.Mouse) mapping {
"up": func(opts sobek.Value) (*sobek.Promise, error) {
popts := common.NewMouseDownUpOptions()
if err := popts.Parse(vu.Context(), opts); err != nil {
return nil, fmt.Errorf("parsing mouse down options: %w", err)
return nil, fmt.Errorf("parsing mouse up options: %w", err)
}
return k6ext.Promise(vu.Context(), func() (any, error) {
return nil, m.Up(popts) //nolint:wrapcheck
Expand Down

0 comments on commit 77f1fe4

Please sign in to comment.