File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ export default class Collection extends Concept {
334
334
* @param {Object } item The item returned from the CMR umm endpoint
335
335
*/
336
336
normalizeUmmItem ( item ) {
337
- const { umm } = item
337
+ const { umm = { } } = item
338
338
339
339
const { ArchiveAndDistributionInformation : archiveAndDistributionInformation = { } } = umm
340
340
Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ describe('Collection', () => {
267
267
268
268
nock ( / e x a m p l e - c m r / )
269
269
. defaultReplyHeaders ( {
270
- 'CMR-Hits' : 2 ,
270
+ 'CMR-Hits' : 3 ,
271
271
'CMR-Took' : 7 ,
272
272
'CMR-Request-Id' : 'abcd-1234-efgh-5678'
273
273
} )
@@ -277,7 +277,8 @@ describe('Collection', () => {
277
277
meta : {
278
278
'concept-id' : 'C100000-EDSC' ,
279
279
'native-id' : 'test-guid' ,
280
- 'revision-id' : '2'
280
+ 'revision-id' : '3' ,
281
+ deleted : false
281
282
} ,
282
283
umm : {
283
284
Abstract : 'Cras mattis consectetur purus sit amet fermentum.'
@@ -286,7 +287,15 @@ describe('Collection', () => {
286
287
meta : {
287
288
'concept-id' : 'C100000-EDSC' ,
288
289
'native-id' : 'test-guid' ,
289
- 'revision-id' : '1'
290
+ 'revision-id' : '2' ,
291
+ deleted : true
292
+ }
293
+ } , {
294
+ meta : {
295
+ 'concept-id' : 'C100000-EDSC' ,
296
+ 'native-id' : 'test-guid' ,
297
+ 'revision-id' : '1' ,
298
+ deleted : false
290
299
} ,
291
300
umm : {
292
301
Abstract : 'Cras mattis consectetur purus sit amet fermentum.'
@@ -549,8 +558,11 @@ describe('Collection', () => {
549
558
quality : 'Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum.' ,
550
559
relatedUrls : [ ] ,
551
560
revisions : {
552
- count : 2 ,
561
+ count : 3 ,
553
562
items : [
563
+ {
564
+ revisionId : '3'
565
+ } ,
554
566
{
555
567
revisionId : '2'
556
568
} ,
You can’t perform that action at this time.
0 commit comments