From d6c968c42cb13318480f479cd0c1653ff2eb316a Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Mon, 22 Aug 2022 17:14:40 +0800 Subject: [PATCH] Fix unit tests --- code/lib/cli/src/js-package-manager/Yarn1Proxy.test.ts | 4 ++-- code/lib/cli/src/js-package-manager/Yarn2Proxy.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/code/lib/cli/src/js-package-manager/Yarn1Proxy.test.ts b/code/lib/cli/src/js-package-manager/Yarn1Proxy.test.ts index 90a7df8b9b8c..c9087095df63 100644 --- a/code/lib/cli/src/js-package-manager/Yarn1Proxy.test.ts +++ b/code/lib/cli/src/js-package-manager/Yarn1Proxy.test.ts @@ -27,10 +27,10 @@ describe('Yarn 1 Proxy', () => { yarn1Proxy.setRegistryURL('https://foo.bar'); - expect(executeCommandSpy).toHaveBeenCalledWith('yarn', [ + expect(executeCommandSpy).toHaveBeenCalledWith('npm', [ 'config', 'set', - 'npmRegistryServer', + 'registry', 'https://foo.bar', ]); }); diff --git a/code/lib/cli/src/js-package-manager/Yarn2Proxy.test.ts b/code/lib/cli/src/js-package-manager/Yarn2Proxy.test.ts index 93faad9aa82e..561c957257da 100644 --- a/code/lib/cli/src/js-package-manager/Yarn2Proxy.test.ts +++ b/code/lib/cli/src/js-package-manager/Yarn2Proxy.test.ts @@ -37,10 +37,10 @@ describe('Yarn 2 Proxy', () => { yarn2Proxy.setRegistryURL('https://foo.bar'); - expect(executeCommandSpy).toHaveBeenCalledWith('yarn', [ + expect(executeCommandSpy).toHaveBeenCalledWith('npm', [ 'config', 'set', - 'npmRegistryServer', + 'registry', 'https://foo.bar', ]); });