From 9a0e013ab6886404309fd282fae43d01f131514b Mon Sep 17 00:00:00 2001 From: Luis Deschamps Rudge Date: Tue, 17 Apr 2018 10:47:29 -0300 Subject: [PATCH] Fix deleteUserMultifactor naming --- src/management/index.js | 12 +++++++++++- test/management/management-client.tests.js | 4 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/management/index.js b/src/management/index.js index f1f4bbf9a..bb07519ae 100644 --- a/src/management/index.js +++ b/src/management/index.js @@ -998,7 +998,7 @@ utils.wrapPropertyMethod(ManagementClient, 'updateAppMetadata', 'users.updateApp * @example * var params = { id: USER_ID, provider: MULTIFACTOR_PROVIDER }; * - * management.deleteUserMultifcator(params, function (err, user) { + * management.deleteUserMultifactor(params, function (err, user) { * if (err) { * // Handle error. * } @@ -1013,6 +1013,16 @@ utils.wrapPropertyMethod(ManagementClient, 'updateAppMetadata', 'users.updateApp * * @return {Promise|undefined} */ +utils.wrapPropertyMethod( + ManagementClient, + 'deleteUserMultifactor', + 'users.deleteMultifactorProvider' +); + +/** + * @deprecated The function name has a typo. We're shipping this so it + * doesn't break compatibility. Use {@link deleteUserMultifactor} instead. + */ utils.wrapPropertyMethod( ManagementClient, 'deleteUserMultifcator', diff --git a/test/management/management-client.tests.js b/test/management/management-client.tests.js index 9de874ed0..4ae834299 100644 --- a/test/management/management-client.tests.js +++ b/test/management/management-client.tests.js @@ -195,7 +195,9 @@ describe('ManagementClient', function() { 'getActiveUsersCount', 'getDailyStats', 'getTenantSettings', - 'updateTenantSettings' + 'updateTenantSettings', + 'deleteUserMultifactor', + 'deleteUserMultifcator' ]; before(function() {