apps-consumer-utils
Advanced tools
Comparing version 1.0.4-0 to 1.0.5-0
@@ -46,2 +46,5 @@ "use strict"; | ||
// getId :: Object -> String | ||
"getHomeSectionId": (content) => R.head(content.Source.split('-')) + '.' + content.OwnerHomeSection, | ||
// getLatestEventById :: [Object] -> [Object] | ||
@@ -48,0 +51,0 @@ "getLatestEventsById": (records) => { |
{ | ||
"name": "apps-consumer-utils", | ||
"version": "1.0.4-0", | ||
"version": "1.0.5-0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,2 +26,13 @@ "use strict"; | ||
describe('getHomeSectionId', () => { | ||
it('should not return the homeSectionId', () => { | ||
const content = { | ||
Source: 'nationals-article', | ||
OwnerHomeSection: '123' | ||
}; | ||
assert.equal(index.getHomeSectionId(content), 'nationals.123'); | ||
}); | ||
}); | ||
describe('normalizeJSON', () => { | ||
@@ -28,0 +39,0 @@ it('should not add deleted field to non-delete event', () => { |
18846
380