Skip to content

Commit 1e72e22

Browse files
fix: bumped npm release to v4
1 parent 4254b04 commit 1e72e22

File tree

4 files changed

+1235
-1183
lines changed

4 files changed

+1235
-1183
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
version: 2.1
33
orbs:
4-
release-management: salesforce/npm-release-management@3
4+
release-management: salesforce/npm-release-management@4
55

66
workflows:
77
version: 2

.idea/workspace.xml

+72-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/commands/auth/logout.test.ts

+8-6
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ describe('auth:logout', () => {
164164
expect(spies.get('aliasesUnset').callCount).to.equal(1);
165165
expect(spies.get('aliasesUnset').args[0]).to.deep.equal(['TestAlias']);
166166
// expect the Config.unset to be called once for the global config
167-
expect(spies.get('configUnset').callCount).to.equal(1);
167+
expect(spies.get('configUnset').callCount).to.equal(2);
168168
expect(spies.get('configUnset').args[0]).to.deep.equal([Config.DEFAULT_USERNAME]);
169169
});
170170

@@ -216,7 +216,7 @@ describe('auth:logout', () => {
216216
expect(spies.get('aliasesUnset').callCount).to.equal(3);
217217
expect(spies.get('aliasesUnset').args).to.deep.equal([['TestAlias'], ['TestAlias1'], ['TestAlias2']]);
218218
// expect the Config.unset to be called once for the global config
219-
expect(spies.get('configUnset').callCount).to.equal(1);
219+
expect(spies.get('configUnset').callCount).to.equal(2);
220220
});
221221

222222
test
@@ -244,7 +244,7 @@ describe('auth:logout', () => {
244244
expect(authInfoConfigStub.unlink.callCount).to.equal(3);
245245
expect(spies.get('aliasesUnset').callCount).to.equal(3);
246246
// expect the Config.unset to be called once for the global config
247-
expect(spies.get('configUnset').callCount).to.equal(1);
247+
expect(spies.get('configUnset').callCount).to.equal(2);
248248
});
249249

250250
test
@@ -320,7 +320,7 @@ describe('auth:logout', () => {
320320
expect(response.status).to.equal(0);
321321
expect(response.result).to.deep.equal([testData.username]);
322322
// expect the Config.unset to be called once for the global config
323-
expect(spies.get('configUnset').callCount).to.equal(1);
323+
expect(spies.get('configUnset').callCount).to.equal(2);
324324
});
325325

326326
test
@@ -337,10 +337,12 @@ describe('auth:logout', () => {
337337
const response = JSON.parse(ctx.stdout);
338338
expect(response.status).to.equal(0);
339339
expect(response.result).to.deep.equal([testData.username]);
340-
expect(spies.get('configUnset').callCount).to.equal(2);
340+
expect(spies.get('configUnset').callCount).to.equal(4);
341341
expect(spies.get('configUnset').args).to.deep.equal([
342342
[Config.DEFAULT_DEV_HUB_USERNAME],
343343
[Config.DEFAULT_USERNAME],
344+
[Config.DEFAULT_DEV_HUB_USERNAME],
345+
[Config.DEFAULT_USERNAME],
344346
]);
345347
});
346348

@@ -358,7 +360,7 @@ describe('auth:logout', () => {
358360
expect(response.status).to.equal(0);
359361
expect(response.result).to.deep.equal([testData.username]);
360362
// expect the Config.unset to be called once for the global config
361-
expect(spies.get('configUnset').callCount).to.equal(1);
363+
expect(spies.get('configUnset').callCount).to.equal(2);
362364
expect(spies.get('configUnset').args[0]).to.deep.equal([Config.DEFAULT_USERNAME]);
363365
});
364366

0 commit comments

Comments
 (0)