From 469373fd2d4e74ba5f7d924cc3b5eda9338c1ddc Mon Sep 17 00:00:00 2001 From: mshanemc Date: Wed, 11 Oct 2023 17:56:48 -0500 Subject: [PATCH] test: remove more skips --- test/unit/org/authInfoTest.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/test/unit/org/authInfoTest.ts b/test/unit/org/authInfoTest.ts index 9514be6d07..7313908860 100644 --- a/test/unit/org/authInfoTest.ts +++ b/test/unit/org/authInfoTest.ts @@ -1272,7 +1272,7 @@ describe('AuthInfo', () => { expect(authInfo.getSfdxAuthUrl()).to.contain(`force://PlatformCLI::${testOrg.refreshToken}@${instanceUrl}`); }); - it.skip('should handle undefined refresh token', async () => { + it('should handle undefined refresh token', async () => { const authResponse = { access_token: testOrg.accessToken, instance_url: testOrg.instanceUrl, @@ -1292,12 +1292,11 @@ describe('AuthInfo', () => { }); // delete the refresh token - delete authInfo.getFields().refreshToken; - + authInfo.update({ ...authInfo.getFields(), refreshToken: undefined }); expect(() => authInfo.getSfdxAuthUrl()).to.throw('undefined refreshToken'); }); - it.skip('should handle undefined instance url', async () => { + it('should handle undefined instance url', async () => { const authResponse = { access_token: testOrg.accessToken, instance_url: testOrg.instanceUrl, @@ -1317,7 +1316,7 @@ describe('AuthInfo', () => { }); // delete the instance url - delete authInfo.getFields().instanceUrl; + authInfo.update({ ...authInfo.getFields(), instanceUrl: undefined }); expect(() => authInfo.getSfdxAuthUrl()).to.throw('undefined instanceUrl'); });