Set the "since" to be the exact time when the last page was added to ensure all the deletion happen after that

This commit is contained in:
Hongbo Wu
2022-09-29 15:36:18 +08:00
parent c6dde4f6f8
commit 0369eb7bea

View File

@ -1009,7 +1009,7 @@ describe('Article API', () => {
}
// set the since to be the timestamp before deletion
since = pages[4].createdAt.toISOString()
since = pages[4].updatedAt!.toISOString()
// Delete some pages
for (let i = 0; i < 3; i++) {