Skip to content

Commit

Permalink
correct test
Browse files Browse the repository at this point in the history
  • Loading branch information
realPy committed Mar 25, 2024
1 parent 557258e commit e864c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/usb/usb.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (u USB) GetDevices() (promise.Promise, error) {
return p, err
}

func (u USB) RequestDevices(filter map[string]int) (promise.Promise, error) {
func (u USB) RequestDevices(filter map[string]interface{}) (promise.Promise, error) {
var err error
var obj js.Value
var p promise.Promise
Expand Down
2 changes: 1 addition & 1 deletion base/usb/usb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestMain(m *testing.M) {

methodsAttempt = []map[string]interface{}{
{"method": "GetDevices", "type": "constructnamechecking", "resultattempt": "Promise"},
{"method": "RequestDevices", "args": []interface{}{map[string]int{"vendorId": 0x11}}, "type": "constructnamechecking", "resultattempt": "Promise"},
{"method": "RequestDevices", "args": []interface{}{map[string]interface{}{"vendorId": 0x11}}, "type": "constructnamechecking", "resultattempt": "Promise"},
}

baseobject.Eval(`usbobj=navigator.usb`)
Expand Down

0 comments on commit e864c58

Please sign in to comment.