Fix unit test for tipsy->tooltip change
This commit is contained in:
parent
7760300fca
commit
038d29b8de
|
@ -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();
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue