Ensure all failing integration tests are fixed (8d8410ff). Closes #1546

This commit is contained in:
Adomas Venčkauskas 2018-08-14 11:40:19 +03:00
parent 11f8bd20d6
commit 01f3159b2f
2 changed files with 5 additions and 2 deletions

View file

@ -365,7 +365,10 @@ describe("Zotero.Integration", function () {
describe('when the style is not from a trusted source', function() {
it('should download the style and if user clicks YES', function* () {
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() {