From 700d5501f9e01498e12b61c301719ad4c938acd6 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sun, 15 Mar 2020 15:39:39 +0100 Subject: [PATCH] Revert "[test] Remove dead method" This reverts commit 804433eefa3577edc11caf3f21cf3114471af3cc. --- test/utils/consoleErrorMock.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/utils/consoleErrorMock.js b/test/utils/consoleErrorMock.js index 7e2a9401bdb2b4..733a4a3234abb0 100644 --- a/test/utils/consoleErrorMock.js +++ b/test/utils/consoleErrorMock.js @@ -35,6 +35,13 @@ class ConsoleErrorMock { throw new Error('Requested call count before spy() was called'); }; + args = () => { + throw new TypeError( + 'args() was removed in favor of messages(). ' + + 'Use messages() to match against the actual error message that will be displayed in the console.', + ); + }; + /** * returns the formatted message for each call *