For example I have function like this:
const interfaceAddAddress = (tag, ip) => {
spawn('bash', ['-c', `ip addr add ${ip} dev ${tag}`]);
};
How to writ unit test with jest for it?
For example I have function like this:
const interfaceAddAddress = (tag, ip) => {
spawn('bash', ['-c', `ip addr add ${ip} dev ${tag}`]);
};
How to writ unit test with jest for it?