diff --git a/test/utils/common-config.js b/test/utils/common-config.js index 39d26541d..9f077ab24 100644 --- a/test/utils/common-config.js +++ b/test/utils/common-config.js @@ -23,6 +23,7 @@ describe('index', () => { title: 'RSSHub', }; expect(configUtils.getProp(data, ['title'], $)).toBe('RSSHub'); + expect(configUtils.getProp(data, 'title', $)).toBe('RSSHub'); }); it('all', async () => { diff --git a/test/utils/date.js b/test/utils/date.js index 265b212ec..6285beb7e 100644 --- a/test/utils/date.js +++ b/test/utils/date.js @@ -82,8 +82,8 @@ describe('date', () => { expect(+new Date(parseDate('4-2'))).toBe(+new Date('2019-4-2')); }); - it('M-D', async () => { - expect(+new Date(parseDate('4-2'))).toBe(+new Date('2019-4-2')); + it('H:m', async () => { + expect(+new Date(parseDate('4:2'))).toBe(+new Date('2019-1-1 04:02')); }); it('刚刚', async () => {