فهرست منبع

test: fix truthy check

ifedapoolarewaju 5 سال پیش
والد
کامیت
9355c1e313
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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()
     })