Explorar o código

test: fix truthy check

ifedapoolarewaju %!s(int64=5) %!d(string=hai) anos
pai
achega
9355c1e313
Modificáronse 1 ficheiros con 1 adicións e 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()
     })