@juan458 mock is a class, not a function -- you're redefining a function to a function that returns a class.
mock