Remove incorrect test for Extra 'type:' extraction

This commit is contained in:
Dan Stillman 2020-03-23 19:09:03 -04:00
parent c03b9c2733
commit d3601bba24

View file

@ -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);