Skip to content

Commit b066db3

Browse files
committed
test: update table assertions in nuts
1 parent e8c6664 commit b066db3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/commands/apex/loggingCommands.nut.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,13 @@ describe('apex log *', () => {
8383
});
8484

8585
it('will list the debug logs', async () => {
86-
const result = execCmd('apex:list:log', { ensureExitCode: 0 }).shellOutput.stdout;
86+
const result = execCmd('apex:list:log', { ensureExitCode: 0, env: { ...process.env, SF_NO_TABLE_STYLE: 'true' } })
87+
.shellOutput.stdout;
88+
8789
expect(result).to.match(
88-
/ Application Duration \(ms\) Id\s+Location\s+Size \(B\) Log User\s+Operation Request Start Time\s+Status /
90+
/Application\s+Duration \(ms\)\s+Id\s+Location\s+Size \(B\)\s+Log User\s+Operation\s+Request\s+Start Time\s+Status/
8991
);
90-
expect(result).to.match(/User User Api\s+Api\s+\d{4}-\d{2}-.* Success /);
92+
expect(result).to.match(/User User\s+Api\s+Api\s+\d{4}-\d{2}-.*\s+Success/);
9193
});
9294

9395
it('will list the debug logs --json', async () => {

0 commit comments

Comments
 (0)