aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-04 18:42:29 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-06 15:31:37 +0200
commitf060e5a72fa152ce48dd5a32ef14c1f270aefa38 (patch)
treec50743fb55d012651ef2cfb7864e78aae4d9a051 /core/js
parent13611824395d1a187b28f153e933b5ff56a4e566 (diff)
downloadnextcloud-server-f060e5a72fa152ce48dd5a32ef14c1f270aefa38.tar.gz
nextcloud-server-f060e5a72fa152ce48dd5a32ef14c1f270aefa38.zip
fix(tests): update jsunit tests after dep and files update
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/tests/specs/appsSpec.js52
1 files changed, 0 insertions, 52 deletions
diff --git a/core/js/tests/specs/appsSpec.js b/core/js/tests/specs/appsSpec.js
deleted file mode 100644
index 3a4c413bbd3..00000000000
--- a/core/js/tests/specs/appsSpec.js
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
-* ownCloud
-*
-* @author Vincent Petry
-* @copyright 2015 Vincent Petry <pvince81@owncloud.com>
-*
-* This library is free software; you can redistribute it and/or
-* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
-* License as published by the Free Software Foundation; either
-* version 3 of the License, or any later version.
-*
-* This library is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
-*
-* You should have received a copy of the GNU Affero General Public
-* License along with this library. If not, see <http://www.gnu.org/licenses/>.
-*
-*/
-
-describe('Apps base tests', function() {
- describe('Sidebar utility functions', function() {
- beforeEach(function() {
- $('#testArea').append('<div id="content"><div id="app-content">Content</div><div id="app-sidebar">The sidebar</div></div>');
- jQuery.fx.off = true;
- });
- afterEach(function() {
- jQuery.fx.off = false;
- });
- it('shows sidebar', function() {
- var $el = $('#app-sidebar');
- OC.Apps.showAppSidebar();
- expect($el.hasClass('disappear')).toEqual(false);
- });
- it('hides sidebar', function() {
- var $el = $('#app-sidebar');
- OC.Apps.showAppSidebar();
- OC.Apps.hideAppSidebar();
- expect($el.hasClass('disappear')).toEqual(true);
- });
- it('triggers appresize event when visibility changed', function() {
- var eventStub = sinon.stub();
- $('#content').on('appresized', eventStub);
- OC.Apps.showAppSidebar();
- expect(eventStub.calledOnce).toEqual(true);
- OC.Apps.hideAppSidebar();
- expect(eventStub.calledTwice).toEqual(true);
- });
- });
-});
-