Fix unit test for tipsy->tooltip change

This commit is contained in:
Vincent Petry 2015-08-10 11:23:39 +02:00
parent 7760300fca
commit 038d29b8de
1 changed files with 3 additions and 3 deletions

View File

@ -20,17 +20,17 @@
*/ */
describe('OCA.Files.MainFileInfoDetailView tests', function() { describe('OCA.Files.MainFileInfoDetailView tests', function() {
var view, tipsyStub, previewStub, fncLazyLoadPreview, fileListMock; var view, tooltipStub, previewStub, fncLazyLoadPreview, fileListMock;
beforeEach(function() { beforeEach(function() {
tipsyStub = sinon.stub($.fn, 'tipsy'); tooltipStub = sinon.stub($.fn, 'tooltip');
fileListMock = sinon.mock(OCA.Files.FileList.prototype); fileListMock = sinon.mock(OCA.Files.FileList.prototype);
view = new OCA.Files.MainFileInfoDetailView(); view = new OCA.Files.MainFileInfoDetailView();
}); });
afterEach(function() { afterEach(function() {
view.destroy(); view.destroy();
view = undefined; view = undefined;
tipsyStub.restore(); tooltipStub.restore();
fileListMock.restore(); fileListMock.restore();
}); });