python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Sinon ignores subsequent async call
I need to verify that all transaction calls are succeeded.
Here's the example:
module.js
const functionUnderTest = async (helper) => {
await helper.transaction(async (transaction) => {
awa...
vichugunov
Votes: 0
Answers: 1
How to ignore library method call count in mocha and super test?
// function to be tested
async function attachFile(req, res) {
const requestPayload = new FormData();
const fileName = req.swagger.params.name.value
const description = req.swagger.params....
Arjun Prajapati
Votes: 0
Answers: 0
How can I test an endpoint that has downloadable content using sinon?
I have the following segment of code:
it('Should return a csv document', function (done) {
const findOneFake = sinon.fake.resolves(dummyIndicador);
sinon.replace(Indica...
Miguel V
Votes: 0
Answers: 0
How to mock firestore query with mocha and sinon?
W.r.t. How to mock firestore with mocha how do I mock the following firestore query using sinon?
import * as admin from "firebase-admin";
const db: FirebaseFirestore.Firestore = admin.firest...

Kok How Teh
Votes: 0
Answers: 1