Update fileInterface test after 0f212bdd76
This commit is contained in:
parent
ad9604e267
commit
8b0dbc7708
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue