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
Mocha/Chai expect an error when calling an async function
Im using mocha / chai to to do some testing.
The function is supposed to throw new Error if called with the same arguments.
The function:
Create a new user and save it do my database (mongoDB), if a u...
yomayo
Votes: 0
Answers: 1
How to test an axios interceptor with mocha, chai and sino
I am having trouble testing the axios interceptor and would like to know if there is a way to do it. I have tried to search for information on the net but I have not been able to get an answer that gi...
Andres Teixeira
Votes: 0
Answers: 0
TypeError: Descriptor for property round is non-configurable and non-writable - smart contracts
I have multiple cloud functions for my contracts and I am trying to create some unit tests using sinon. However, I have issues when trying to simulate some of the cloud of the functions. I want just t...
Vitomir
Votes: 0
Answers: 1