release: v0.15.0 (#585)
Eighteen changes since v0.14.0. See CHANGELOG.md for the full list and the upgrade notes (bump IMAGE_CACHE_VERSION).
This commit is contained in:
@@ -36,6 +36,8 @@ describe('restoreBackup rejects anything that is not a backup it produced', () =
|
||||
'gallery.yaml', // the live file, not a backup
|
||||
'gallery.yaml.2026-05-31T17-30-00-000Z.bak.txt',
|
||||
'evil-gallery.yaml.2026-05-31T17-30-00-000Z.bak',
|
||||
'about.yaml.2026-05-31T17-30-00-000Z.bak',
|
||||
'trip.md.2026-05-31T17-30-00-000Z.bak', // journal backups go through the journal service
|
||||
'',
|
||||
];
|
||||
|
||||
@@ -66,6 +68,13 @@ describe('restoreBackup accepts the names it writes', () => {
|
||||
expect(fs.copyFile).toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('restores an about.md backup onto content/about.md', async () => {
|
||||
await restoreBackup('about.md.2026-05-31T17-30-00-000Z.bak');
|
||||
|
||||
const calls = vi.mocked(fs.copyFile).mock.calls;
|
||||
expect(String(calls[calls.length - 1][1])).toMatch(/content\/about\.md$/);
|
||||
});
|
||||
|
||||
it('restores a pre-restore backup', async () => {
|
||||
await expect(
|
||||
restoreBackup('settings.yaml.2026-05-31T17-30-00-000Z.pre-restore.bak'),
|
||||
|
||||
Reference in New Issue
Block a user