diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-07-17 19:39:01 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-07-20 23:38:04 +0200 |
commit | 8d3f58c3917018a859917af377b8954910a3ba6e (patch) | |
tree | 002f775f6bd57514dfef4b97d58a638e67eff363 /core/js/tests/specs/appsSpec.js | |
parent | 43ab2082db0db30fd31e9597ed895e0cf3febe47 (diff) | |
download | nextcloud-server-8d3f58c3917018a859917af377b8954910a3ba6e.tar.gz nextcloud-server-8d3f58c3917018a859917af377b8954910a3ba6e.zip |
Jsunit fixes 1
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'core/js/tests/specs/appsSpec.js')
-rw-r--r-- | core/js/tests/specs/appsSpec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/tests/specs/appsSpec.js b/core/js/tests/specs/appsSpec.js index c3352e3e4a9..3a4c413bbd3 100644 --- a/core/js/tests/specs/appsSpec.js +++ b/core/js/tests/specs/appsSpec.js @@ -22,7 +22,7 @@ describe('Apps base tests', function() { describe('Sidebar utility functions', function() { beforeEach(function() { - $('#testArea').append('<div id="app-content">Content</div><div id="app-sidebar">The sidebar</div>'); + $('#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() { @@ -41,7 +41,7 @@ describe('Apps base tests', function() { }); it('triggers appresize event when visibility changed', function() { var eventStub = sinon.stub(); - $('#app-content').on('appresized', eventStub); + $('#content').on('appresized', eventStub); OC.Apps.showAppSidebar(); expect(eventStub.calledOnce).toEqual(true); OC.Apps.hideAppSidebar(); |