Am trying to write tests and I want to spy on this library function which is exported as default. So anyhow I import the library, it just returns the function hence unable to ca