In the documentationnamespace: null should overwrite the global namespace... unless I'm missing something. Currently, it seems that the namespace is being retained for mocks; even if they are set to overwrite the namespace. Here's a test to illustrate what I mean:
In the documentation
namespace: null
should overwrite the global namespace... unless I'm missing something. Currently, it seems that the namespace is being retained for mocks; even if they are set to overwrite the namespace. Here's a test to illustrate what I mean:Currently that test will fail unless I change the namespace for the second mock to be
namespace: '/'
. You can see here: https://github.com/jakerella/jquery-mockjax/blob/master/src/jquery.mockjax.js#L167 that we fallback to the mockjaxSettings.