Fix tag saving for intercepted imports from connector
Save tags in intercepted files as automatic tags
This commit is contained in:
parent
2f620c5f91
commit
3241faf503
3 changed files with 7 additions and 1 deletions
|
@ -731,7 +731,8 @@ describe("Connector Server", function () {
|
|||
title={Test1},
|
||||
author={Owl},
|
||||
year={1000},
|
||||
publisher={Curly Braces Publishing}
|
||||
publisher={Curly Braces Publishing},
|
||||
keywords={A, B}
|
||||
}`;
|
||||
|
||||
var addedItemIDsPromise = waitForItemEvent('add');
|
||||
|
@ -748,6 +749,8 @@ describe("Connector Server", function () {
|
|||
|
||||
let itemIDs = yield addedItemIDsPromise;
|
||||
assert.isTrue(collection.hasItem(itemIDs[0]));
|
||||
var item = Zotero.Items.get(itemIDs[0]);
|
||||
assert.sameDeepMembers(item.getTags(), [{ tag: 'A', type: 1 }, { tag: 'B', type: 1 }]);
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue