mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
They seem to be succeeding when run individually, but failing when run as a whole. Not sure why yet.
23 lines
558 B
JavaScript
23 lines
558 B
JavaScript
"use strict";
|
|
|
|
describe("Zotero.OpenURL", function () {
|
|
describe("#createContextObject()", function () {
|
|
it("should use firstCreator for author", async function () {
|
|
var item = createUnsavedDataObject('item');
|
|
item.setCreators([
|
|
{
|
|
firstName: "Aaa",
|
|
lastName: "Editor",
|
|
creatorType: 'editor'
|
|
},
|
|
{
|
|
firstName: "Bbb",
|
|
lastName: "Author",
|
|
creatorType: 'author'
|
|
}
|
|
]);
|
|
var co = Zotero.OpenURL.createContextObject(item, "1.0");
|
|
assert.include(co, '&rft.aufirst=Bbb&rft.aulast=Author&');
|
|
});
|
|
});
|
|
});
|