Skip to content

Commit

Permalink
test: fix UT
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed Jun 28, 2023
1 parent 5c3abfb commit b3a3d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/org/orgTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ describe('Org Tests', () => {
await configAgg.reload();
const stateAggregator = await StateAggregator.getInstance();

expect(configAgg.getConfig()).to.deep.equal({ 'target-org': username });
expect(configAgg.getConfig()['target-org']).to.equal(username);

await stateAggregator.aliases.setAndSave('deleteThisAlias', username);
expect(stateAggregator.aliases.getUsername('deleteThisAlias')).to.equal(username);
Expand All @@ -353,7 +353,7 @@ describe('Org Tests', () => {
$$.SANDBOX.stub(org, 'getDevHubOrg').resolves(dev);

await org.delete();
expect(configAgg.getConfig()).to.deep.equal({});
expect(configAgg.getConfig()['target-org']).to.equal(undefined);

expect(stateAggregator.aliases.get(username)).to.be.null;
expect(devHubQuery.calledOnce).to.be.true;
Expand Down

0 comments on commit b3a3d11

Please sign in to comment.