Skip to content

Commit

Permalink
Merge pull request #389 from NYPL/main
Browse files Browse the repository at this point in the history
main -> Qa
  • Loading branch information
danamansana authored Jun 11, 2024
2 parents a380cd7 + 182b28f commit f17c8b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/location_label_updater.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ describe('Location LabelUpdater', function () {
'_id': 'b10980129',
'_source': {
'items': [{
'holdingLocation': [{'id': 'mai87', 'label': 'Some disgusting room'}]
'holdingLocation': [{'id': 'mai82', 'label': 'Some disgusting room'}]
}]
}
}]}
}

let updatedResponse = new LocationLabelUpdater(fakeESResponse).responseWithUpdatedLabels()
expect(updatedResponse.hits.hits[0]._source.items[0].holdingLocation[0].label).to.equal('Schwarzman Building - Periodicals and Microforms Room 119')
expect(updatedResponse.hits.hits[0]._source.items[0].holdingLocation[0].label).to.equal('Schwarzman Building M1 - Microforms Room 315')
})

it('will overwrite an ElasticSearch Response\'s holdings record location label', function () {
Expand Down

0 comments on commit f17c8b8

Please sign in to comment.