From 2eca54d58bcb715facacbc8196b8f921c9f428ed Mon Sep 17 00:00:00 2001 From: mshanemc Date: Mon, 22 Mar 2021 10:23:46 -0500 Subject: [PATCH] test: repro an error via a NUT --- test/allCommands.nut.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/allCommands.nut.ts b/test/allCommands.nut.ts index 098fe2f6..861df034 100644 --- a/test/allCommands.nut.ts +++ b/test/allCommands.nut.ts @@ -18,6 +18,8 @@ import { UserDisplayResult } from '../src/commands/force/user/display'; use(chaiEach); let session: TestSession; +let mainUserId; + describe('verifies all commands run successfully ', () => { before(() => { session = TestSession.create({ @@ -47,6 +49,7 @@ describe('verifies all commands run successfully ', () => { expect(output.result.orgId).to.have.length(18); expect(output.result.id).to.have.length(18); expect(output.result.accessToken.startsWith(output.result.orgId.substr(0, 15))).to.be.true; + mainUserId = output.result.id; }); it('assigns a permset to the default user', () => { @@ -75,6 +78,7 @@ describe('verifies all commands run successfully ', () => { 'lastname', 'timezonesidkey' ); + expect(output.result.fields.id).to.not.equal(mainUserId); }); it('assigns permset to the secondary user', () => { @@ -117,7 +121,7 @@ describe('verifies all commands run successfully ', () => { }); after(async () => { - await session.zip(undefined, 'artifacts'); - await session.clean(); + await session?.zip(undefined, 'artifacts'); + await session?.clean(); }); });