Fix deprecated suppresses and Map type in JS

This properly fixes the issue that was suppressed in [] and
just started breaking today thanks to []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=213510500
This commit is contained in:
mcilwain 2018-09-18 13:54:27 -07:00 committed by Ben McIlwain
parent 1f80f58336
commit 9bcd5579ef
2 changed files with 5 additions and 9 deletions

View file

@ -34,10 +34,8 @@ registry.registrar.ConsoleTestUtil.setup = function(test) {
test.historyMock = test.mockControl.createLooseMock(goog.History, true);
test.sessionMock = test.mockControl.createLooseMock(
registry.registrar.EppSession, true);
/** @suppress {missingRequire} */
test.mockControl.createConstructorMock(goog, 'History')()
.$returns(test.historyMock);
/** @suppress {missingRequire} */
test.mockControl
.createConstructorMock(registry.registrar, 'EppSession')(
goog.testing.mockmatchers.isObject)