Fix failing integration test (regr 0f1687f). Closes #1546

This commit is contained in:
Adomas Venčkauskas 2018-08-13 14:22:06 +03:00
parent 5ad2a83b61
commit 8d8410ffa0

View file

@ -397,7 +397,10 @@ describe("Zotero.Integration", function () {
it('should download the style without prompting if it is from zotero.org', function* (){
yield initDoc(docID, {styleID: "http://www.zotero.org/styles/waterbirds", locale: 'en-US'});
var styleInstallStub = sinon.stub(Zotero.Styles, "install").resolves();
var styleInstallStub = sinon.stub(Zotero.Styles, "install").resolves({
styleTitle: 'Waterbirds',
styleID: 'waterbirds'
});
var style = Zotero.Styles.get(styleID);
var styleGetCalledOnce = false;
var styleGetStub = sinon.stub(Zotero.Styles, 'get').callsFake(function() {