无法通过authentication从supertest上传文件到multer

我正在使用multer来处理我的快速应用程序中的file upload,而且我还使用node-sspi进行ntlm身份validation。

当用curl上传文件时,一切正常。 但是,当我尝试与超级相同,这是行不通的。
Supertest只使用auth或只是上传,但我没有成功与他们在一起工作。

curl命令: curl -u user:pass --ntlm -F upload=@filename http://localhost

超级代码不起作用:

 request(app) .post('/upload') .auth(username, password) .attach('upload', fileToUpload) .expect(200) 

如果我省略了attachauth – 它的工作原理(当然,我需要禁用服务器端的身份validation,但通常我可以上传)

那么,有人知道如何使用超级用户身份上传文件auth?