The `expectAsync` in line 39 should do the trick (seems to work).  I think returning a Future might be trickier in this case due to the callback from js, we'd likely have to use an async `Completer` and return its `.future` to do it that way.