From 7c147424958053e97b3b875497bb986e8602beb1 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Mon, 21 Nov 2011 10:31:35 -0700 Subject: [PATCH] update mocked network responses in frontend unit tests - add missing request line, include domain_key_creation_time in session_context response --- resources/static/test/qunit/mocks/xhr.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/static/test/qunit/mocks/xhr.js b/resources/static/test/qunit/mocks/xhr.js index 487355c77..a46142fdf 100644 --- a/resources/static/test/qunit/mocks/xhr.js +++ b/resources/static/test/qunit/mocks/xhr.js @@ -38,6 +38,7 @@ BrowserID.Mocks.xhr = (function() { var contextInfo = { server_time: new Date().getTime(), + domain_key_creation_time: (new Date().getTime() - (30 * 24 * 60 * 60 * 1000)), csrf_token: "csrf", authenticated: false }; @@ -59,6 +60,7 @@ BrowserID.Mocks.xhr = (function() { // call to serverTime. We are going to use the flag contextAjaxError "get /wsapi/session_context ajaxError": contextInfo, "get /wsapi/session_context throttle": contextInfo, + "get /wsapi/session_context multiple": contextInfo, "get /wsapi/session_context contextAjaxError": undefined, "get /wsapi/email_for_token?token=token valid": { email: "testuser@testuser.com" }, "get /wsapi/email_for_token?token=token invalid": { success: false }, -- GitLab