Sfoglia il codice sorgente

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

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

GitOrigin-RevId: 8c3b33113ce93fe087258efb68346c8e86b23096
Jakob Ackermann 2 anni fa
parent
commit
3b36bfdba4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      libraries/fetch-utils/test/unit/FetchUtilsTests.js

+ 1 - 1
libraries/fetch-utils/test/unit/FetchUtilsTests.js

@@ -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)