Guest User

Untitled

a guest
Jun 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. $.ajax({
  2. contentType: 'application/x-www-form-urlencoded',
  3. async: bAsynchronous,
  4. type: 'POST',
  5. url: url,
  6. data: content + getSecurityURL(url,sData), //we need to pass the information for security.
  7. success: typeof functionA == 'function' && typeof functionB == 'function'
  8. ? [functionA, functionB] : console.log('Error'),
  9. });
  10.  
  11. QUnit.module('unit tests', {
  12. beforeEach: function() {
  13. server = sinon.fakeServer.create();
  14. },
  15. afterEach: function() {
  16. delete server;
  17. }
  18. });
Add Comment
Please, Sign In to add comment