NatLibFi/marc-record-js

View on GitHub
test-fixtures/index/getFields/03/metadata.json

Summary

Maintainability
Test Coverage
{
  "description": "Should return empty array if no tags match",
  "skip": false,
  "input": {
    "leader": "02848ccm a22005894i 4500",
    "fields":
    [
      {"tag": "001", "value": "A"},
      {"tag": "001", "value": "B"},
      {"tag": "003", "value": "A"},
      {"tag": "100", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "A"}]},
      {"tag": "245", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "A"}, {"code": "b", "value": "B"}]},
      {"tag": "245", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "A"}, {"code": "b", "value": "B"}, {"code": "c", "value": "C"}]}
    ]
  },
  "operations": [
    { "name": "getFields", "args": {"tag": "246"}}
  ],
  "returns": [],
  "immutable": true
}