mirror of
https://github.com/zotero/zotero.git
synced 2026-08-28 05:25:31 +00:00
Update utilities submodule
Some checks are pending
Some checks are pending
And add test for citing date strings wrapped in double quotes https://forums.zotero.org/discussion/133277/
This commit is contained in:
parent
ed8049dffc
commit
dac1ad489f
2 changed files with 6 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 71b3e83013398acb8d63d968bfef95160bf77581
|
||||
Subproject commit 4051881d59c6c12d34417d4c226f37218051be90
|
||||
|
|
@ -38,7 +38,7 @@ describe("Zotero.Cite", function () {
|
|||
});
|
||||
});
|
||||
|
||||
describe("EDTF dates", function () {
|
||||
describe("Dates", function () {
|
||||
async function makeBibliography(fields) {
|
||||
let item = new Zotero.Item;
|
||||
item.fromJSON(Object.assign({
|
||||
|
|
@ -71,6 +71,10 @@ describe("Zotero.Cite", function () {
|
|||
assert.include(output, '2021–2026');
|
||||
assert.notInclude(output, '1999');
|
||||
});
|
||||
|
||||
it("should render a quoted date as a literal string", async function () {
|
||||
assert.include(await makeBibliography({ date: '"1637 and 1662"' }), '1637 and 1662');
|
||||
});
|
||||
});
|
||||
|
||||
describe("#retrieveLocale()", function () {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue