diff --git a/frontend/apps/remark42/app/common/fetcher.test.ts b/frontend/apps/remark42/app/common/fetcher.test.ts index b6c4a470..336f1cb3 100644 --- a/frontend/apps/remark42/app/common/fetcher.test.ts +++ b/frontend/apps/remark42/app/common/fetcher.test.ts @@ -132,6 +132,7 @@ describe('fetcher', () => { expect.assertions(1); const data = { text: 'text' }; + const dataShouldBe = { ...data, site: 'remark' }; const headersWithContentType = { ...headers, 'Content-Type': 'application/json' }; mockFetch(); @@ -140,7 +141,7 @@ describe('fetcher', () => { expect(window.fetch).toBeCalledWith(apiUrl, { method: 'post', headers: headersWithContentType, - body: JSON.stringify(data), + body: JSON.stringify(dataShouldBe), }); });