Skip to content

Commit 4a9b4c3

Browse files
committed
test: adjust for deprecation warning, silence stderr warnings
1 parent 5a6f478 commit 4a9b4c3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/commands/sobject/list.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('force:schema:sobject:list', () => {
2828
beforeEach(async () => {
2929
await $$.stubAuths(testOrg);
3030
stdoutSpy = $$.SANDBOX.stub(process.stdout, 'write');
31+
$$.SANDBOX.stub(process.stderr, 'write');
3132
});
3233

3334
afterEach(async () => {
@@ -87,7 +88,7 @@ describe('force:schema:sobject:list', () => {
8788

8889
// eslint-disable-next-line no-underscore-dangle
8990
await cmd._run();
90-
91-
expect(stdoutSpy.args[1][0]).to.equal('No ALL objects found.\n');
91+
const stdout = stdoutSpy.args.flat().join('');
92+
expect(stdout).to.include('No ALL objects found.\n');
9293
});
9394
});

0 commit comments

Comments
 (0)