Skip to content

Commit

Permalink
test: repro an error via a NUT
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Mar 22, 2021
1 parent 2aa5eaf commit 2eca54d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/allCommands.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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', () => {
Expand Down Expand Up @@ -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();
});
});

0 comments on commit 2eca54d

Please sign in to comment.