Write sessionID into the doc on new session creation

This commit is contained in:
Adomas Venčkauskas 2017-05-03 14:34:00 +03:00
parent 6336a30cb9
commit 37fa0c203f
2 changed files with 4 additions and 2 deletions

View file

@ -352,10 +352,10 @@ describe("Zotero.Integration", function () {
assert.isFalse(setDocumentDataSpy.called);
});
it('should not call doc.setDocumentData when document communicates for first time since restart, but has data', function* () {
it('should call doc.setDocumentData when document communicates for first time since restart to write new sessionID', function* () {
Zotero.Integration.sessions = {};
yield execCommand('addEditCitation', docID);
assert.isFalse(setDocumentDataSpy.called);
assert.isTrue(setDocumentDataSpy.calledOnce);
});
describe('when style used in the document does not exist', function() {