Remove incorrect test for Extra 'type:' extraction
This commit is contained in:
parent
c03b9c2733
commit
d3601bba24
1 changed files with 0 additions and 8 deletions
|
@ -121,14 +121,6 @@ describe("Zotero.Utilities.Internal", function () {
|
||||||
assert.equal(extra, 'type: note');
|
assert.equal(extra, 'type: note');
|
||||||
});
|
});
|
||||||
|
|
||||||
it("should extract a CSL type", function () {
|
|
||||||
var str = 'type: motion_picture';
|
|
||||||
var { itemType, fields, extra } = Zotero.Utilities.Internal.extractExtraFields(str);
|
|
||||||
assert.equal(itemType, 'videoRecording');
|
|
||||||
assert.equal(fields.size, 0);
|
|
||||||
assert.strictEqual(extra, '');
|
|
||||||
});
|
|
||||||
|
|
||||||
it("should use the first mapped Zotero type for a CSL type", function () {
|
it("should use the first mapped Zotero type for a CSL type", function () {
|
||||||
var str = 'type: personal_communication';
|
var str = 'type: personal_communication';
|
||||||
var { itemType, fields, extra } = Zotero.Utilities.Internal.extractExtraFields(str);
|
var { itemType, fields, extra } = Zotero.Utilities.Internal.extractExtraFields(str);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue