Write sessionID into the doc on new session creation
This commit is contained in:
parent
6336a30cb9
commit
37fa0c203f
2 changed files with 4 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue