(fullpath: string, mtimeDate: Date)
| 315 | const oneDayInMs = 24 * 60 * 60 * 1000; |
| 316 | |
| 317 | const createFileEntry = (fullpath: string, mtimeDate: Date): GlobPath => ({ |
| 318 | fullpath: () => fullpath, |
| 319 | mtimeMs: mtimeDate.getTime(), |
| 320 | }); |
| 321 | |
| 322 | it('should sort a mix of recent and older files correctly', () => { |
| 323 | const recentTime1 = new Date(nowTimestamp - 1 * 60 * 60 * 1000); // 1 hour ago |