Skip to content

Commit

Permalink
test: use regex in list.nut.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 30, 2024
1 parent dab606e commit d6291e1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/commands/alias/list.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ describe('alias list NUTs', () => {
env: { ...process.env, SF_NO_TABLE_STYLE: 'true' },
}).shellOutput;
expect(res).to.include('Alias List'); // Table header
expect(res).to.include('alias value');
expect(res).to.include('DevHub [email protected]');
expect(res).to.match(/alias\s+value/);
expect(res).to.match(/DevHub\s+mydevhuborg@salesforce\.com/);
});
});

Expand Down Expand Up @@ -103,10 +103,10 @@ describe('alias list NUTs', () => {
}).shellOutput;

expect(res).to.include('Alias List'); // Table header
expect(res).to.include('alias value');
expect(res).to.include('DevHub [email protected]');
expect(res).to.include('Admin [email protected]');
expect(res).to.include('user [email protected]');
expect(res).to.match(/alias\s+value/);
expect(res).to.match(/DevHub\s+mydevhuborg@salesforce\.com/);
expect(res).to.match(/Admin\s+admin@salesforce\.com/);
expect(res).to.match(/user\s+user@salesforce\.com/);
});
});
});

0 comments on commit d6291e1

Please sign in to comment.