Skip to content

Commit a081077

Browse files
committed
test(open_graph): replace updated_time with modified_time
1 parent 051b9e4 commit a081077

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/scripts/helpers/open_graph.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -436,27 +436,27 @@ describe('open_graph', () => {
436436
is_post: isPost
437437
}, { });
438438

439-
result.should.contain(meta({property: 'og:updated_time', content: '2016-05-23T21:20:21.372Z'}));
439+
result.should.contain(meta({property: 'article:modified_time', content: '2016-05-23T21:20:21.372Z'}));
440440
});
441441

442-
it('updated - options - allow overriding og:updated_time', () => {
442+
it('updated - options - allow overriding article:modified_time', () => {
443443
const result = openGraph.call({
444444
page: { updated: moment('2016-05-23T21:20:21.372Z') },
445445
config: hexo.config,
446446
is_post: isPost
447447
}, { updated: moment('2015-04-22T20:19:20.371Z') });
448448

449-
result.should.contain(meta({property: 'og:updated_time', content: '2015-04-22T20:19:20.371Z'}));
449+
result.should.contain(meta({property: 'article:modified_time', content: '2015-04-22T20:19:20.371Z'}));
450450
});
451451

452-
it('updated - options - allow disabling og:updated_time', () => {
452+
it('updated - options - allow disabling article:modified_time', () => {
453453
const result = openGraph.call({
454454
page: { updated: moment('2016-05-23T21:20:21.372Z') },
455455
config: hexo.config,
456456
is_post: isPost
457457
}, { updated: false });
458458

459-
result.should.not.contain(meta({property: 'og:updated_time', content: '2016-05-23T21:20:21.372Z'}));
459+
result.should.not.contain(meta({property: 'article:modified_time', content: '2016-05-23T21:20:21.372Z'}));
460460
});
461461

462462
it('description - do not add /(?:og:)?description/ meta tags if there is no description', () => {

0 commit comments

Comments
 (0)