所以我是javascript的新手,我一直在浏览别人的代码,我发现了这个..
describe('deviceready', function() {
it('should report that it fired', function() {
spyOn(app, 'report');
app.deviceready();
expect(app.report).toHaveBeenCalledWith('deviceready');
});
});
我不明白的是:
info:
- Its a phonegap application
- We are using the spine.js and jQuery libraries