jakerella / jquery-mockjax

The jQuery Mockjax Plugin provides a simple and extremely flexible interface for mocking or simulating ajax requests and responses
Other
2.12k stars 376 forks source link

Fix Bug #312: namepsace gets duplicated on subsequent mock handlers #319

Closed jakerella closed 7 years ago

jakerella commented 7 years ago

This PR fixes bug #312 by implementing an "effective URL" for use with namespaces. This is necessary because we currently override the actual handler's URL, thus on subsequent mock handling the URL gets compounded with the namespace a second, third, fourth, etc time.

Additionally, I've added some better CLI tools for testing things like this so we can now only test a single jquery version and/or one or more test modules.