Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
chore(deps-dev): bump prettier from 1.18.2 to 1.19.1 (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] authored Dec 15, 2019
1 parent 3a595dc commit ef14f10
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"madge": "^3.3.0",
"marked": "^0.8.0",
"memfs": "^3.0.0",
"prettier": "^1.18.0",
"prettier": "^1.19.1",
"raw-loader": "^4.0.0",
"semantic-release": "^15.13.28",
"typescript": "^3.7.2",
Expand Down
12 changes: 9 additions & 3 deletions src/commands/listRemote.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ import { getVersionInUse, getYarnVersions, printVersions } from 'util/version'
export const listRemote = async () => {
log.info('Checking for available yarn versions...')
try {
const [remoteVersions, versionInUse, localVersions] = await Promise.all(
[getVersionsFromTags(), getVersionInUse(), getYarnVersions()],
)
const [
remoteVersions,
versionInUse,
localVersions,
] = await Promise.all([
getVersionsFromTags(),
getVersionInUse(),
getYarnVersions(),
])
if (!remoteVersions.length) {
throw new Error('No versions available for install')
}
Expand Down
8 changes: 6 additions & 2 deletions test/commands/exec.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ describe('exec command', () => {
const args = ['extra', 'args']
expect(await exec(version, args)).toBe(0)
expect(install.ensureVersionInstalled).toHaveBeenCalledTimes(1)
expect(childProcess.execFileSync).toHaveBeenCalledWith(
expect(
childProcess.execFileSync,
).toHaveBeenCalledWith(
`${rootPath}/versions/v${version}/bin/yarn.js`,
args,
{ stdio: 'inherit' },
Expand All @@ -40,7 +42,9 @@ describe('exec command', () => {
it('executes yarn with correct rcVersion', async () => {
expect(await exec()).toBe(0)
expect(install.ensureVersionInstalled).toHaveBeenCalledTimes(1)
expect(childProcess.execFileSync).toHaveBeenCalledWith(
expect(
childProcess.execFileSync,
).toHaveBeenCalledWith(
`${rootPath}/versions/v${rcVersion}/bin/yarn.js`,
[],
{ stdio: 'inherit' },
Expand Down
7 changes: 4 additions & 3 deletions test/commands/getNewPath.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ describe('getNewPath', () => {
jest.spyOn(log, 'capturable')
jest.spyOn(log, 'error')
jest.spyOn(log, 'info')
jest.spyOn(install, 'ensureVersionInstalled').mockImplementation(
() => {},
)
jest.spyOn(
install,
'ensureVersionInstalled',
).mockImplementation(() => {})
jest.spyOn(version, 'getSplitVersionAndArgs').mockReturnValue([
mockVersion,
])
Expand Down
5 changes: 4 additions & 1 deletion test/scripts/install.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ describe('install yvm', () => {
fs.removeSync(mockHome)
})

it.each([['v2.3.0', 'v2.3.0'], ['2.4', 'v2.4.3']])(
it.each([
['v2.3.0', 'v2.3.0'],
['2.4', 'v2.4.3'],
])(
'indicates successful completion %s',
async (installVersion, versionToMatch) => {
envInstallVersion.mockValue(installVersion)
Expand Down
16 changes: 8 additions & 8 deletions test/util/path.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ describe('util.path', () => {
)

describe('toPathString', () => {
it.each([['bash', ':'], ['fish', ' ']])(
'builds correct path string for %s shell',
(shell, delimiter) => {
expect(toPathString({ shell, paths: mockPathEntries })).toEqual(
mockPathEntries.join(delimiter),
)
},
)
it.each([
['bash', ':'],
['fish', ' '],
])('builds correct path string for %s shell', (shell, delimiter) => {
expect(toPathString({ shell, paths: mockPathEntries })).toEqual(
mockPathEntries.join(delimiter),
)
})
})

describe('getPathEntries', () => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8171,10 +8171,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^1.18.0:
version "1.18.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea"
integrity sha512-OeHeMc0JhFE9idD4ZdtNibzY0+TPHSpSSb9h8FqtP+YnoZZ1sl8Vc9b1sasjfymH3SonAF4QcA2+mzHPhMvIiw==
prettier@^1.19.1:
version "1.19.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==

pretty-format@^24.8.0, pretty-format@^24.9.0:
version "24.9.0"
Expand Down

0 comments on commit ef14f10

Please sign in to comment.