Skip to content

Commit

Permalink
fix: typing correction in kit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Bergman committed Nov 6, 2018
1 parent 065d4fe commit fb86323
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
}
},
"dependencies": {
"@salesforce/kit": "0.10.0",
"@salesforce/ts-types": "0.16.0",
"@salesforce/kit": "0.12.0",
"@salesforce/ts-types": "0.17.3",
"@types/jsforce": "1.8.12",
"bunyan-sfdx-no-dtrace": "1.8.2",
"debug": "^3.1.0",
Expand Down
5 changes: 2 additions & 3 deletions test/unit/authInfoTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { spyMethod, stubMethod } from '@salesforce/ts-sinon';
import {
AnyJson,
ensureString,
get,
getJsonMap,
getString,
JsonMap,
Expand Down Expand Up @@ -330,11 +329,11 @@ describe('AuthInfo', () => {
throw new Error('Key indicates client secret.');
}

if (includes(get(obj, key), testMetadata.defaultConnectedAppInfo.clientSecret)) {
if (includes(getJsonMap(obj, key), testMetadata.defaultConnectedAppInfo.clientSecret)) {
throw new Error(`Client secret present as value in object with key: ${key}`);
}

if (includes(get(obj, key), decryptedRefreshToken)) {
if (includes(getJsonMap(obj, key), decryptedRefreshToken)) {
throw new Error(`Refresh token present as value in object with key: ${key}`);
}
});
Expand Down

0 comments on commit fb86323

Please sign in to comment.