(function (root, factory) { define([ "mock", "utils" ], function (mock, utils) { return factory(mock, utils); } ); } (this, function (mock, utils) { return describe("ChatRooms", $.proxy(function (mock, utils) { describe("A Chat Room", $.proxy(function () { beforeEach(function () { utils.closeAllChatBoxes(); utils.createNewChatRoom('lounge', 'dummy'); }); afterEach(function () { utils.closeAllChatBoxes(); }); it("shows users currently present in the room", $.proxy(function () { var chatroomview = this.chatboxesview.views['lounge@muc.localhost'], $participant_list; var roster = {}, room = {}, i; for (i=0; i