Eliminate all console errors during test run
FREEBIE
This commit is contained in:
parent
f6c62e4822
commit
3cfac58d78
5 changed files with 38 additions and 16 deletions
|
@ -2,10 +2,14 @@
|
|||
|
||||
describe("Fixtures", function() {
|
||||
before(function(done) {
|
||||
// NetworkStatusView checks this method every five seconds while showing
|
||||
window.getSocketStatus = function() { return WebSocket.OPEN; };
|
||||
|
||||
Whisper.Fixtures.saveAll().then(function() {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('renders', function(done) {
|
||||
ConversationController.updateInbox().then(function() {
|
||||
var view = new Whisper.InboxView({appWindow: {contentWindow: window}});
|
||||
|
@ -18,6 +22,6 @@ describe("Fixtures", function() {
|
|||
var view = new Whisper.InboxView({appWindow: {contentWindow: window}});
|
||||
view.$el.removeClass('android').addClass('android-dark');
|
||||
view.$el.prependTo($('#render-android-dark'));
|
||||
}).then(done,done);
|
||||
}).then(done, done);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue