Skip to content

Commit

Permalink
self review
Browse files Browse the repository at this point in the history
  • Loading branch information
mattseddon committed Apr 27, 2023
1 parent 408a94c commit a097c8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions extension/src/test/suite/setup/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export const buildSetup = (
messageSpy,
resourceLocator,
internalCommands,
dvcExecutor,
dvcReader,
gitExecutor,
gitReader
Expand Down Expand Up @@ -99,7 +98,6 @@ export const buildSetup = (

return {
config,
dvcExecutor,
internalCommands,
messageSpy,
mockAutoInstallDvc,
Expand Down
8 changes: 4 additions & 4 deletions extension/src/util/appdirs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { join } from 'path'
import { getDVCAppDir, getIterativeAppDir } from './appdirs'
import { getProcessPlatform } from '../env'

const mockedUserConfigDir = require('appdirs').userConfigDir
const mockedGetProcessPlatform = jest.mocked(getProcessPlatform)
const mockedJoin = jest.mocked(join)

jest.mock('appdirs', () => ({ userConfigDir: jest.fn() }))
jest.mock('../env')
jest.mock('path')

const mockedUserConfigDir = require('appdirs').userConfigDir
const mockedGetProcessPlatform = jest.mocked(getProcessPlatform)
const mockedJoin = jest.mocked(join)

beforeEach(() => {
jest.resetAllMocks()
})
Expand Down

0 comments on commit a097c8b

Please sign in to comment.