From f002b11106400e744345a9c30e8540100c5a68ef Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Fri, 11 Feb 2022 10:56:13 +0530 Subject: [PATCH] Uncomment the incorrectly commented code in the previous commit. --- .../javascript/jasmine_capture_warnings_beforeall.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/web/regression/javascript/jasmine_capture_warnings_beforeall.js b/web/regression/javascript/jasmine_capture_warnings_beforeall.js index 310fb0330..2eab2d9ac 100644 --- a/web/regression/javascript/jasmine_capture_warnings_beforeall.js +++ b/web/regression/javascript/jasmine_capture_warnings_beforeall.js @@ -10,15 +10,15 @@ /* eslint-disable no-console */ beforeAll(function () { - // spyOn(console, 'warn').and.callThrough(); - // spyOn(console, 'error').and.callThrough(); + spyOn(console, 'warn').and.callThrough(); + spyOn(console, 'error').and.callThrough(); jasmine.getEnv().allowRespy(true); }); afterEach(function (done) { setTimeout(function () { - // expect(console.warn).not.toHaveBeenCalled(); - // expect(console.error).not.toHaveBeenCalled(); + expect(console.warn).not.toHaveBeenCalled(); + expect(console.error).not.toHaveBeenCalled(); done(); }, 0); });