Report
Question
I am using Sinon+SinonChai+Enzyme to test my react-redux portion of the application. There’s a use case in my application where I am hitting an API for loginUser. I have some formData created to post user credentials. However, in writing tests ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 10 views

Report
Question
Is there a way to tell chimp to run chrome outside the sandbox while using chimp + mocha + selenium? I read in their website that most of the configuration can be done through the command line, but I was unable ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 65 views

Report
Question
I have a directory named test, in package.json I have the script: "test": "mocha --recursive" this is the error I get when I run it /node_modules/mongoose/lib/schema.js:387 throw new TypeError('Invalid value for schema path `' + prefix + key + '`'); ^ TypeError: ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 8 views

Report
Question
I’m trying to add tdd to my website. However, I’m having an issue getting mocha/chai to run. process.env.NODE_ENV = 'test'; //var mongoose = require("mongoose"); var chai = require('chai'); var chaiHttp = require('chai-http'); var server = require('../app'); var m_Kbase_data = require('../model/Kbase'); var m_KbaseScript_schema = require('../model/KbaseScript'); var should = ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 31 views

Report
Question
Response status passes and fails under my control. But I can’t see to get the expect(res.body) test to pass. Route displays exactly as programmed when viewed in the browser. but mocha/chai test for testing what is rendered ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
1 Answer 34 views

Report
Question
Objective Run Mocha tests with npm run, without getting a ELIFECYCLE error. Background After my last question on mocha and npm, I found that Mocha returns the number of failed tests as a result. Now, when running a script with npm ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
2 Answer 7 views

Report
Question
I’m creating an auth middleware app using LDAP and I’m having difficulty getting a search to work. I’m using Mocha for tests and I created a util.js to create a mock ldapjs server: let server = require('../mocks/ldapServer'); const ldap = require('ldapjs'); ...

Please briefly explain why you feel this question should be reported .

Report Cancel
solved 0
2 Answer 37 views

Report
Question
i want to test my file number.d.ts like verifying if this file contains in its class such functions by testing the generated file .js. Here is file number.d.ts : // file number.d.ts export interface Options{ ...

Please briefly explain why you feel this question should be reported .

Report Cancel
0
0 Answer 8 views