My code has:
.then((data) => {
let providerId = data[1].name;
console.log(providerId);
return global.db.Transcription.create({
ConferenceId: foundConference.id
})
.then(() => {
return {
providerId
};
});
})
.then((dbTranscription) => {
return factory.checkTranscription({
Body: JSON.stringify({
providerId: dbTranscription.providerId
})
});
})
However, I have no specific test for the checkTranscription being called, etc. I'd rather not show that as covered. Is there anyway to do that?
from Why does Istanbul show coverage for everything in a promise chain regardless of whether or not there's a test for it?

No comments:
Post a Comment