Skip to content

Commit 90a2a3c

Browse files
committed
test: for all keys
1 parent 20d4e84 commit 90a2a3c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ describe('test org:open command', () => {
2121
it('org:open command', async () => {
2222
const result = execCmd('force:org:open --urlonly --json', {
2323
ensureExitCode: 0,
24-
}).jsonOutput.result;
24+
}).jsonOutput.result as { url: string; orgId: string; username: string };
2525
expect(result).to.be.ok;
26-
expect(result).to.have.key('url').and.to.include('/secur/frontdoor.jsp');
26+
expect(result).to.have.keys(['url', 'orgId', 'username']);
27+
expect(result?.url).to.include('/secur/frontdoor.jsp');
2728
});
2829

2930
after(async () => {

0 commit comments

Comments
 (0)