Update fileInterface test after 0f212bdd76

This commit is contained in:
Dan Stillman 2020-03-24 17:53:13 -04:00
parent ad9604e267
commit 8b0dbc7708

View file

@ -53,10 +53,10 @@ describe("Zotero_File_Interface", function() {
); );
var promise = waitForItemEvent('add'); var promise = waitForItemEvent('add');
Zotero.debug(yield Zotero.File.getContentsAsync(rdfFile));
yield win.Zotero_File_Interface.importFile(Zotero.File.pathToFile(rdfFile)) yield win.Zotero_File_Interface.importFile(Zotero.File.pathToFile(rdfFile))
var ids = yield promise; var ids = yield promise;
assert.lengthOf(ids, 1); // Notifications are batched
assert.lengthOf(ids, 2);
// Check book // Check book
var item = Zotero.Items.get(ids[0]); var item = Zotero.Items.get(ids[0]);