Assuming i have a static class and a normal class as below.
class StaticClass {
static staticFunction() {
console.log('Static function called.');
}
}
class NormalClass {
normalFunction() {
StaticCLass.staticFunction();
}
}
How do I test that the static function is called when normalFunction()
is called?