summaryrefslogtreecommitdiffstats
path: root/apps/files/tests
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-03 11:45:53 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-03 11:45:53 +0200
commit1d0ac9a2c58ea265ce587e3e72729516be63fc38 (patch)
tree243d122d979f39b57b4bbf8d03d5146fa090a3e7 /apps/files/tests
parent74e2a4b1548fd586977de47db84f61c4116e0323 (diff)
downloadnextcloud-server-1d0ac9a2c58ea265ce587e3e72729516be63fc38.tar.gz
nextcloud-server-1d0ac9a2c58ea265ce587e3e72729516be63fc38.zip
Fix tests
Diffstat (limited to 'apps/files/tests')
-rw-r--r--apps/files/tests/js/appSpec.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files/tests/js/appSpec.js b/apps/files/tests/js/appSpec.js
index a9bbab03ecb..99a73d0b01d 100644
--- a/apps/files/tests/js/appSpec.js
+++ b/apps/files/tests/js/appSpec.js
@@ -200,31 +200,31 @@ describe('OCA.Files.App tests', function() {
expect(App.navigation.getActiveItem()).toEqual('other');
expect($('#app-content-files').hasClass('hidden')).toEqual(true);
expect($('#app-content-other').hasClass('hidden')).toEqual(false);
- expect($('li[data-id=files]').hasClass('selected')).toEqual(false);
- expect($('li[data-id=other]').hasClass('selected')).toEqual(true);
+ expect($('li[data-id=files]').hasClass('active')).toEqual(false);
+ expect($('li[data-id=other]').hasClass('active')).toEqual(true);
App._onPopState({view: 'files', dir: '/somedir'});
expect(App.navigation.getActiveItem()).toEqual('files');
expect($('#app-content-files').hasClass('hidden')).toEqual(false);
expect($('#app-content-other').hasClass('hidden')).toEqual(true);
- expect($('li[data-id=files]').hasClass('selected')).toEqual(true);
- expect($('li[data-id=other]').hasClass('selected')).toEqual(false);
+ expect($('li[data-id=files]').hasClass('active')).toEqual(true);
+ expect($('li[data-id=other]').hasClass('active')).toEqual(false);
});
it('clicking on navigation switches the panel visibility', function() {
$('li[data-id=other]>a').click();
expect(App.navigation.getActiveItem()).toEqual('other');
expect($('#app-content-files').hasClass('hidden')).toEqual(true);
expect($('#app-content-other').hasClass('hidden')).toEqual(false);
- expect($('li[data-id=files]').hasClass('selected')).toEqual(false);
- expect($('li[data-id=other]').hasClass('selected')).toEqual(true);
+ expect($('li[data-id=files]').hasClass('active')).toEqual(false);
+ expect($('li[data-id=other]').hasClass('active')).toEqual(true);
$('li[data-id=files]>a').click();
expect(App.navigation.getActiveItem()).toEqual('files');
expect($('#app-content-files').hasClass('hidden')).toEqual(false);
expect($('#app-content-other').hasClass('hidden')).toEqual(true);
- expect($('li[data-id=files]').hasClass('selected')).toEqual(true);
- expect($('li[data-id=other]').hasClass('selected')).toEqual(false);
+ expect($('li[data-id=files]').hasClass('active')).toEqual(true);
+ expect($('li[data-id=other]').hasClass('active')).toEqual(false);
});
it('clicking on navigation sends "show" and "urlChanged" event', function() {
var handler = sinon.stub();