瀏覽代碼

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()
     })