Explorar el Código

test: fix truthy check

ifedapoolarewaju hace 5 años
padre
commit
9355c1e313
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/@uppy/companion/test/__tests__/http-agent.js

+ 1 - 1
packages/@uppy/companion/test/__tests__/http-agent.js

@@ -72,7 +72,7 @@ describe('test protected request Agent', () => {
     }
 
     request(options, (err) => {
-      expect(err).toBeTruthy(Error)
+      expect(err).toBeTruthy()
       expect(err.message.startsWith(FORBIDDEN_IP_ADDRESS)).toEqual(true)
       done()
     })