Fix error generate sample type/field data for tests

This commit is contained in:
Dan Stillman 2022-03-05 06:02:57 -05:00
parent a1305712f3
commit 96347d4333

View file

@ -771,7 +771,7 @@ var generateItemJSONData = Zotero.Promise.coroutine(function* generateItemJSONDa
for (let itemName in items) {
let zItem = yield Zotero.Items.getAsync(items[itemName].id);
jsonData[itemName] = zItem.toJSON(options);
jsonData[itemName] = zItem.toJSON(options || {});
// Don't replace some fields that _always_ change (e.g. item keys)
// as long as it follows expected format