テストケースが 正
でないと失敗とも判別せず、タイムアウトとして処理されてしまう
タイムアウトった例
テストケースが正でないので、タイムアウト
it('recieve the error of too mush messages', done => {
client.push(to, messages).catch(err => {
err.status.should.to.equal(500); // 実際には400が返ってきている
done();
});
});
タイムアウトらなかった例
テストケースが正なので、ちゃんと done
が動いた?(実装追ってないから分からん)
it('recieve the error of too mush messages', done => {
client.push(to, messages).catch(err => {
err.status.should.to.equal(400); // 実際には400が返ってきている
done();
});
});