How do you mock an outer method calling a callback using sinon? Example given the following code, createTable should return \'a string\' as response in the callback function