Skip to content

Commit

Permalink
fix: fixed test spy
Browse files Browse the repository at this point in the history
  • Loading branch information
WillieRuemmele committed May 4, 2020
1 parent 86e6957 commit c1f4ba4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/authInfoTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { OAuth2, OAuth2Options } from 'jsforce';
// @ts-ignore WebStorm is reporting an error for the nested import
import * as Transport from 'jsforce/lib/transport';
import * as jwt from 'jsonwebtoken';
import { resolve as pathResolve } from 'path';
import * as pathImport from 'path';
import { AuthFields, AuthInfo, OAuth2WithVerifier } from '../../src/authInfo';
import { AuthInfoConfig } from '../../src/config/authInfoConfig';
import { ConfigFile } from '../../src/config/configFile';
Expand Down Expand Up @@ -1335,7 +1335,7 @@ describe('AuthInfo', () => {
});

it('should path.resolve jwtkeyfilepath', async () => {
const pathSpy = $$.SANDBOX.spy(pathResolve);
const pathSpy = $$.SANDBOX.spy(pathImport, 'resolve');
const context = {
update: () => {},
buildJwtConfig: () => {},
Expand Down

0 comments on commit c1f4ba4

Please sign in to comment.