@natlibfi/marc-record
Version:
MARC record implementation in JavaScript
23 lines (22 loc) • 439 B
JSON
{
"description": "Should throw if removing last field",
"skip": false,
"input": {
"leader": "02848ccm a22005894i 4500",
"fields":
[
{"tag": "000", "value": "bar"}
]
},
"operations": [
{ "name": "removeField", "args": { "index": 0 }}
],
"throws": "Cannot remove last field",
"result": {
"leader": "02848ccm a22005894i 4500",
"fields":
[
{"tag": "000", "value": "bar"}
]
}
}