fix: add date_published selector in www.ossnews.jp extractor (#376)

pull/377/head^2
kik0220 5 years ago committed by Toufic Mouallem
parent 3e91ac55db
commit 7c0949e587

@ -7,7 +7,11 @@ export const WwwOssnewsJpExtractor = {
author: null,
date_published: null,
date_published: {
selectors: ['p.fs12'],
format: 'YYYY年MM月DD日 HH:mm',
timezone: 'Asia/Tokyo',
},
dek: null,

@ -61,7 +61,7 @@ describe('WwwOssnewsJpExtractor', () => {
// Update these values with the expected values from
// the article.
assert.equal(date_published, null);
assert.equal(date_published, '2019-03-15T00:43:00.000Z');
});
it('returns the dek', async () => {

Loading…
Cancel
Save