python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
TypeError: Cannot read property 'navigator' of undefined
My unit test case started failing when I started running the unit test in mocha from karma,
Earlier we were using karma and --browser to run the test case but it was running fine,
1) common/browser-...
Javascript Coder
Votes: 0
Answers: 1
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 test passes even though I throw error
it.only('test', async() => {
const lol = pdfjs.getDocument({data: data, password: "123"})
lol.promise.then((ex) => { return ex }).catch((err) => {
console.log(err)
...
Yarden Orenshtein
Votes: 0
Answers: 1
How to configure .mocharc.yml to choose exports-style interface?
How to configure .mocharc.yml to choose exports-style interface.
It should be like this ___:_____
G T
Votes: 0
Answers: 1