test: test rule optimization (#2871)
This commit is contained in:
parent
6f2ee73073
commit
cb408c94de
|
|
@ -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 () => {
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue