parent
5ad2a83b61
commit
8d8410ffa0
1 changed files with 4 additions and 1 deletions
|
@ -397,7 +397,10 @@ describe("Zotero.Integration", function () {
|
||||||
|
|
||||||
it('should download the style without prompting if it is from zotero.org', 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'});
|
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 style = Zotero.Styles.get(styleID);
|
||||||
var styleGetCalledOnce = false;
|
var styleGetCalledOnce = false;
|
||||||
var styleGetStub = sinon.stub(Zotero.Styles, 'get').callsFake(function() {
|
var styleGetStub = sinon.stub(Zotero.Styles, 'get').callsFake(function() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue