From 5440fd750477cb18f4ebf98d4b6691422c2d74d9 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 12 Aug 2016 07:27:53 +0100 Subject: [PATCH] Fix tests MatrixClientPeg no longer has a replaceUsingUrls method, so don't try to stub it out. --- test/test-utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/test-utils.js b/test/test-utils.js index e2ff5e8c10..799f04ce54 100644 --- a/test/test-utils.js +++ b/test/test-utils.js @@ -50,8 +50,7 @@ module.exports.stubClient = function() { // // 'sandbox.restore()' doesn't work correctly on inherited methods, // so we do this for each method - var methods = ['get', 'unset', 'replaceUsingUrls', - 'replaceUsingCreds']; + var methods = ['get', 'unset', 'replaceUsingCreds']; for (var i = 0; i < methods.length; i++) { sandbox.stub(peg, methods[i]); } @@ -184,4 +183,3 @@ module.exports.mkStubRoom = function() { }, }; }; -