mocked.takes(arg1, args2, ...)
Specify arguments of the function and verify then when calling
mocked.takesF(function)
As opposed to takes(), in which we can only specify static values,
takesF() (note the "F" in the name to indicate that it takes a function)
allows client code to provide a predicate that determines whether the
mocked function should accept ("take") the value and allowing mock code
to be a bit more dynamic.
mocked.takesAll()
A shorthand function that tells the mock function to accept any input.
mocked.returns(returnValue)
Specify the return value of the function
mocked.returnsF(function)
Similar to takesF(), returnsF() allows to provide a function that will
dynamically generate values that will be returned from mock calls. The
function will be provided with the parameters that were passed to the
mock call.
mocked.calls(callbackPosition, argumentsArray)
Calls a callback at the arguments in index `callbackPosition`
with the arguments specified in the "argumentsArray"
when using this you've to define a function signature as a callback in
the argument list for a callback at index 2 .takes() function will be as,
mocked.takes(10, 20, function(){})
mocked.fail()
If calls at very begining afterword any call on the mocked objects will
fail. Otherwise current mock method will fails someone called that.
mocked.times(repetitiveCount);
We can rule the mocked method to be called multiple times with same
parameters. Finally we can check that using above assert method;
mocked.reset()
Reset all the rules and mocks created. And bring mocked object into a
stage when it's created
mocked.ignore()
Ignore Some methods from the mocking behaviour

mocked.assert();
Checks whether rules we've defined using other methods were executed.
If all the rules were executed return true, otherwise false
mocked.assertThrows();
Same as the mocked.assert() but throws an execption if rules breaks.