Skip to content

Commit e84ddd9

Browse files
committed
chore: correct lint errors
1 parent f36c2ff commit e84ddd9

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ import { TestSession } from '@salesforce/cli-plugins-testkit';
1212
import { execCmd } from '@salesforce/cli-plugins-testkit';
1313
import { asDictionary, AnyJson, Dictionary, getString, isArray } from '@salesforce/ts-types';
1414

15-
/* eslint-disable @typescript-eslint/no-unsafe-call */
16-
1715
const verifyHumanResults = (
1816
lines: string[],
1917
defaultUsername: string,
@@ -112,11 +110,13 @@ describe('Org Command NUT', () => {
112110
);
113111
});
114112
it('should list orgs in a human readable form', () => {
115-
const lines = execCmd('force:org:list', { ensureExitCode: 0 }).shellOutput.stdout.split(os.EOL);
113+
const lines = (execCmd('force:org:list', { ensureExitCode: 0 }).shellOutput.stdout as string).split(os.EOL);
116114
verifyHumanResults(lines, defaultUsername, aliasedUsername);
117115
});
118116
it('should list additional information with --verbose', () => {
119-
const lines = execCmd('force:org:list --verbose', { ensureExitCode: 0 }).shellOutput.stdout.split(os.EOL);
117+
const lines = (execCmd('force:org:list --verbose', { ensureExitCode: 0 }).shellOutput.stdout as string).split(
118+
os.EOL
119+
);
120120
verifyHumanResults(lines, defaultUsername, aliasedUsername, true);
121121
});
122122
});
@@ -139,15 +139,15 @@ describe('Org Command NUT', () => {
139139
});
140140
});
141141
it('should display human readable org information for default username', () => {
142-
const lines = execCmd<Dictionary>('force:org:display', { ensureExitCode: 0 }).shellOutput.stdout.split(os.EOL);
142+
const lines = (execCmd<Dictionary>('force:org:display', { ensureExitCode: 0 }).shellOutput
143+
.stdout as string).split(os.EOL);
143144
expect(lines.length).to.have.greaterThan(0);
144145
const usernameLine = lines.find((line) => line.includes('Username'));
145146
expect(usernameLine).to.include(defaultUsername);
146147
});
147148
it('should display human readable scratch org information for alias', () => {
148-
const lines = execCmd(`force:org:display -u ${aliasedUsername}`, { ensureExitCode: 0 }).shellOutput.stdout.split(
149-
os.EOL
150-
);
149+
const lines = (execCmd(`force:org:display -u ${aliasedUsername}`, { ensureExitCode: 0 }).shellOutput
150+
.stdout as string).split(os.EOL);
151151
expect(lines.length).to.have.greaterThan(0);
152152
const usernameLine = lines.find((line) => line.includes('Username'));
153153
expect(usernameLine).to.include(aliasedUsername);

0 commit comments

Comments
 (0)