Merge pull request #15956 from overleaf/jpa-tweak-test

[fetch-utils] tests: fix test for handling of errors in fetchString

GitOrigin-RevId: 8c3b33113ce93fe087258efb68346c8e86b23096
This commit is contained in:
Jakob Ackermann 2023-11-27 15:17:17 +01:00 committed by Copybot
parent 661c9f685c
commit 3b36bfdba4

View file

@ -199,7 +199,7 @@ describe('fetch-utils', function () {
}) })
it('handles errors', async function () { it('handles errors', async function () {
await expect(fetchJson(this.url('/500'))).to.be.rejectedWith( await expect(fetchString(this.url('/500'))).to.be.rejectedWith(
RequestFailedError RequestFailedError
) )
await expectRequestAborted(this.server.lastReq) await expectRequestAborted(this.server.lastReq)