diff --git a/test/helpers/api-integration.helper.js b/test/helpers/api-integration.helper.js index 755b497c62..56df233a1c 100644 --- a/test/helpers/api-integration.helper.js +++ b/test/helpers/api-integration.helper.js @@ -33,6 +33,12 @@ class ApiUser { this.put = _requestMaker(this, 'put'); this.del = _requestMaker(this, 'del'); } + + update (options) { + return new Promise((resolve) => { + _updateDocument('users', this, options, resolve); + }); + } } // Sets up an abject that can make all REST requests