From 2828780457174dae9c1944ac3cf511b66e252c1b Mon Sep 17 00:00:00 2001 From: Shane Tomlinson <stomlinson@mozilla.com> Date: Tue, 10 Jul 2012 20:35:19 +0100 Subject: [PATCH] the complete_email_addition wsapi was renamed to complete_email_confirmation. Update the mock and wsapi call. --- resources/static/common/js/network.js | 2 +- resources/static/test/mocks/xhr.js | 13 ++++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/resources/static/common/js/network.js b/resources/static/common/js/network.js index 5f8a77cec..ee7de6e0c 100644 --- a/resources/static/common/js/network.js +++ b/resources/static/common/js/network.js @@ -325,7 +325,7 @@ BrowserID.Network = (function() { * with one boolean parameter that specifies the validity of the token. * @param {function} [onFailure] - Called on XHR failure. */ - completeEmailRegistration: completeAddressVerification.curry("/wsapi/complete_email_addition"), + completeEmailRegistration: completeAddressVerification.curry("/wsapi/complete_email_confirmation"), /** * Request a password reset for the given email address. diff --git a/resources/static/test/mocks/xhr.js b/resources/static/test/mocks/xhr.js index ecb7c6b88..99116c22f 100644 --- a/resources/static/test/mocks/xhr.js +++ b/resources/static/test/mocks/xhr.js @@ -53,10 +53,10 @@ BrowserID.Mocks.xhr = (function() { "post /wsapi/cert_key valid": random_cert, "post /wsapi/cert_key invalid": undefined, "post /wsapi/cert_key ajaxError": undefined, - "post /wsapi/complete_email_addition valid": { success: true }, - "post /wsapi/complete_email_addition badPassword": 401, - "post /wsapi/complete_email_addition invalid": { success: false }, - "post /wsapi/complete_email_addition ajaxError": undefined, + "post /wsapi/complete_email_confirmation valid": { success: true }, + "post /wsapi/complete_email_confirmation badPassword": 401, + "post /wsapi/complete_email_confirmation invalid": { success: false }, + "post /wsapi/complete_email_confirmation ajaxError": undefined, "post /wsapi/stage_user unknown_secondary": { success: true }, "post /wsapi/stage_user valid": { success: true }, "post /wsapi/stage_user invalid": { success: false }, @@ -86,11 +86,6 @@ BrowserID.Mocks.xhr = (function() { "post /wsapi/stage_reverify throttle": 429, "post /wsapi/stage_reverify ajaxError": undefined, - "post /wsapi/complete_reverify valid": { success: true }, - "post /wsapi/complete_reverify badPassword": 401, - "post /wsapi/complete_reverify invalid": { success: false }, - "post /wsapi/complete_reverify ajaxError": undefined, - "get /wsapi/email_reverify_status?email=registered%40testuser.com pending": { status: "pending" }, "get /wsapi/email_reverify_status?email=registered%40testuser.com complete": { status: "complete", userid: 4 }, "get /wsapi/email_reverify_status?email=registered%40testuser.com mustAuth": { status: "mustAuth" }, -- GitLab