Fix test failures due to previous commit
This commit is contained in:
parent
4273e19716
commit
c9d7e17a10
@ -2706,7 +2706,7 @@
|
||||
var id = b64_sha1('converse.minchatstoggle'+this.bare_jid);
|
||||
this.toggleview.model.id = id; // Appears to be necessary for backbone.localStorage
|
||||
this.toggleview.model.localStorage = new Backbone.LocalStorage(id);
|
||||
this.toggleview.model.fetch({success: callback, error: callback});
|
||||
this.toggleview.model.fetch();
|
||||
},
|
||||
|
||||
render: function () {
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
it("has an API method for retrieving the next RID", $.proxy(function () {
|
||||
var old_connection = converse.connection;
|
||||
converse.connection.rid = '1234';
|
||||
converse.connection._proto.rid = '1234';
|
||||
converse.expose_rid_and_sid = false;
|
||||
expect(converse_api.getRID()).toBe(null);
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
it("has an API method for retrieving the SID", $.proxy(function () {
|
||||
var old_connection = converse.connection;
|
||||
converse.connection.sid = '1234';
|
||||
converse.connection._proto.sid = '1234';
|
||||
converse.expose_rid_and_sid = false;
|
||||
expect(converse_api.getSID()).toBe(null);
|
||||
|
||||
|
@ -69,7 +69,7 @@ require([
|
||||
delete converse.callback;
|
||||
// Stub the trimChat method. It causes havoc when running with
|
||||
// phantomJS.
|
||||
converse.ChatBoxView.prototype.trimChat = function () {};
|
||||
converse.ChatBoxViews.prototype.trimChat = function () {};
|
||||
|
||||
// Jasmine stuff
|
||||
var jasmineEnv = jasmine.getEnv();
|
||||
|
@ -29,6 +29,7 @@
|
||||
};
|
||||
|
||||
mock.mock_connection = {
|
||||
'_proto': {},
|
||||
'mock': true,
|
||||
'muc': {
|
||||
'listRooms': function () {},
|
||||
|
Loading…
Reference in New Issue
Block a user