Merge commit 'cb408c94de9a63906059f0242efaea6f2f905fd1'

This commit is contained in:
DIYgod 2019-08-18 21:53:22 +08:00
commit 9e8e424c8c
2 changed files with 3 additions and 2 deletions

View File

@ -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 () => {

View File

@ -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 () => {