Skip to content

Commit 68c15bf

Browse files
authored
Merge pull request #497 from salesforcecli/sm/nuts-cleanup
test: don't truncate expected value
2 parents a119498 + 27368e9 commit 68c15bf

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/nut/commands/force/org/org.nut.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77

88
import { join } from 'path';
99
import * as querystring from 'querystring';
10-
import { expect } from '@salesforce/command/lib/test';
10+
import { expect, config } from 'chai';
1111
import { TestSession } from '@salesforce/cli-plugins-testkit';
1212
import { execCmd } from '@salesforce/cli-plugins-testkit';
1313
import { asDictionary, Dictionary, getString } from '@salesforce/ts-types';
1414

1515
let hubOrgUsername: string;
16+
config.truncateThreshold = 0;
1617

1718
const verifyHumanResults = (
1819
lines: string[],
@@ -68,11 +69,7 @@ describe('Org Command NUT', () => {
6869
],
6970
});
7071

71-
const hubOrg = execCmd<[{ key: string; value: string }]>('config:get defaultdevhubusername --json', {
72-
cli: 'sfdx',
73-
ensureExitCode: 0,
74-
});
75-
hubOrgUsername = hubOrg.jsonOutput.result[0].value;
72+
hubOrgUsername = session.hubOrg.username;
7673

7774
defaultUsername = session.orgs.get('default').username;
7875
defaultUserOrgId = session.orgs.get('default').orgId;

0 commit comments

Comments
 (0)