From a18b28f953d809245e77f434da61fcd01266b6fc Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 31 Aug 2013 20:53:12 +0200 Subject: [PATCH] Fix tests --- spec/MainSpec.js | 4 ++-- tests_main.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/MainSpec.js b/spec/MainSpec.js index 52d0ae25f..b1c28f360 100644 --- a/spec/MainSpec.js +++ b/spec/MainSpec.js @@ -630,7 +630,7 @@ it("contains two tabs, 'Contacts' and 'ChatRooms'", $.proxy(function () { var cbview = this.chatboxesview.views.controlbox; - var $panels = cbview.$el.find('#controlbox-panes'); + var $panels = cbview.$el.find('.controlbox-panes'); expect($panels.children().length).toBe(2); expect($panels.children().first().attr('id')).toBe('users'); expect($panels.children().first().is(':visible')).toBe(true); @@ -647,7 +647,7 @@ it("is opened by clicking the 'Chatrooms' tab", $.proxy(function () { var cbview = this.chatboxesview.views.controlbox; var $tabs = cbview.$el.find('#controlbox-tabs'); - var $panels = cbview.$el.find('#controlbox-panes'); + var $panels = cbview.$el.find('.controlbox-panes'); var $contacts = $panels.children().first(); var $chatrooms = $panels.children().last(); spyOn(cbview, 'switchTab').andCallThrough(); diff --git a/tests_main.js b/tests_main.js index e81b35b7b..95be3821f 100644 --- a/tests_main.js +++ b/tests_main.js @@ -33,7 +33,7 @@ require.config({ //module value. exports: 'Backbone' }, - 'tinysort': { deps: ['jquery'] }, + 'jquery.tinysort': { deps: ['jquery'] }, 'strophe': { deps: ['jquery'] }, 'underscore': { exports: '_' }, 'strophe.muc': { deps: ['strophe', 'jquery'] },