diff --git a/test/docker-images.test.ts b/test/docker-images.test.ts index 7cbd868..8417d20 100644 --- a/test/docker-images.test.ts +++ b/test/docker-images.test.ts @@ -297,10 +297,11 @@ test('logging in twice for two repository domains (containing account id & regio }); mockEcr.on(DescribeRepositoriesCommand).callsFake((input) => { - const url = { + const repos: Record = { repo: '12345.amazonaws.com/repo', repo2: '12346.amazonaws.com/repo2', - }[input.repositoryNames[0]]; + }; + const url = repos[input.repositoryNames[0]]; if (!url) { throw new Error(`Unexpected repo: ${JSON.stringify(input)}`); }