0
Я новичок в mocha и supertest, я пытаюсь проверить свой API, но я всегда получаю отказ от отказа в соединении.Ошибка: подключить ECONNREFUSED, mocha, supertest
var request = require('supertest');
it("posts a new comment to /comment", function (done) {
var comment = { username: 'riheb', userId: 'test1', userPhotoId: '12a', comment: 'update file now' };
request("http://localhost:3000")
.post("/sp/place/582f148515035818e080e653/folder/582f16b3ef9caf029863331b/file/583d6b5243af5628b8491fd3/comment")
.send(comment)
.expect(200)
.expect(" riheb comment is stored", done);
});
});
Не могли бы вы дать какие-либо понятия, почему это случилось? С Благодаря