stupid thing with broken jquery promises, but I just translated the `waits(0); runs(fn)` thing from jasmine.