cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Bond-Caron <jbo...@gdesolutions.com>
Subject RE: plugman testing
Date Wed, 26 Feb 2014 14:48:15 GMT
On Wed Feb 26 09:24 AM, Gert-Jan Braas wrote:

> >>                      expect(s).toHaveBeenCalledWith(temp,
> >> path.join('src', 'plugins', 'dummyplugin', 'DummyPlugin.js'));
> >>                      done();
> >>                   });
> >>              });
> >>          });
> >>
> >
> > Jasmine runs synchronously, so you need to 'waitsFor' promise:
> >
> 
> Ok thanks.
> Will look that up. First I will try to look what's going on thoug. The 'waitFor' is not
> needed in the tests for the other platforms, so I don't expect it to be for
> Firefoxos also. Correct me if I'm wrong.
> 

So I take that back,
 
Looks like jasmine supports calling done() to wait for an async test (documented in 2.0).


Seems like the better way to go.


Mime
View raw message