Answer the question
In order to leave comments, you need to log in
How to write unittests in javascript?
Hello!
The situation is as follows: I have a javascript project that is compiled using the npm run server () command. Those. there is a package.json file that contains the “vue-cli-service serve” command.
In the project, I have some javascript functions that look like this:
import Axios from 'axios';
export default {
f1(cb) {
let x = {};
cb(x);
}
f2(p1,p2) {
return p1 + p2;
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question