From 108f90b0bf093d6ebc89dc9bb36499323e5b2e01 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 31 Dec 2015 12:15:57 -0600 Subject: [PATCH] tests(api): Add update method for api user --- test/helpers/api-integration.helper.js | 6 ++++++ 1 file changed, 6 insertions(+) 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