Creating one xhr mock function so that we test through the entire stack minus...
Creating one xhr mock function so that we test through the entire stack minus the network calls themselves. * Create one xhr mock in qunit/mocks/xhr.js * Use the xhr mock everywhere xhr functionality is used. * Get rid of the network mocks and use the real network code to test the full stack. * Updating the user unit tests to use this mock, which comes from network. close #520
Showing
- resources/static/dialog/test/qunit/mocks/mocks.js 39 additions, 0 deletionsresources/static/dialog/test/qunit/mocks/mocks.js
- resources/static/dialog/test/qunit/mocks/xhr.js 162 additions, 0 deletionsresources/static/dialog/test/qunit/mocks/xhr.js
- resources/static/dialog/test/qunit/pages/add_email_address_test.js 37 additions, 31 deletions.../static/dialog/test/qunit/pages/add_email_address_test.js
- resources/static/dialog/test/qunit/pages/forgot_unit_test.js 10 additions, 16 deletionsresources/static/dialog/test/qunit/pages/forgot_unit_test.js
- resources/static/dialog/test/qunit/qunit.js 3 additions, 1 deletionresources/static/dialog/test/qunit/qunit.js
- resources/static/dialog/test/qunit/resources/network_unit_test.js 18 additions, 121 deletions...s/static/dialog/test/qunit/resources/network_unit_test.js
- resources/static/dialog/test/qunit/resources/user_unit_test.js 66 additions, 215 deletions...rces/static/dialog/test/qunit/resources/user_unit_test.js
Loading
Please register or sign in to comment