fix(test): seriesManage reorder spec must not JSON.parse the bodyless GET refresh

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-17 12:21:15 -04:00
parent 886284d182
commit 9e96525234
+1 -1
View File
@@ -40,7 +40,7 @@ describe('seriesManage', () => {
s.pages = [{ image_id: 1 }, { image_id: 2 }, { image_id: 3 }]
const calls = []
stubFetch((url, init) => {
calls.push({ url, body: JSON.parse(init.body) })
calls.push({ url, body: init.body ? JSON.parse(init.body) : null })
if (url.includes('/reorder')) return { status: 200, body: { ok: true } }
return { status: 200, body: { series: { id: 7, name: 'V' }, pages: [] } }
})