Skip to content

Commit

Permalink
style: reformat with prettier 3
Browse files Browse the repository at this point in the history
  • Loading branch information
axe312ger committed Feb 6, 2024
1 parent b4fbf1d commit 91f9928
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
10 changes: 7 additions & 3 deletions packages/sqip-cli/src/sqip-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ import Debug from 'debug'
import fs from 'fs-extra'
import pkgUp from 'pkg-up'

import { sqip, resolvePlugins, SqipCliOptionDefinition, SqipOptions } from 'sqip'
import {
sqip,
resolvePlugins,
SqipCliOptionDefinition,
SqipOptions
} from 'sqip'

const debug = Debug('sqip-cli')

Expand Down Expand Up @@ -65,8 +70,7 @@ const defaultOptionList: SqipCliOptionDefinition[] = [
name: 'print',
type: Boolean,
defaultValue: false,
description:
'Print resulting svg to stdout.'
description: 'Print resulting svg to stdout.'
}
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@ describe('does prepare problematic svgs properly for blurring', () => {
expect(result).toMatchSnapshot()
})
test('svg with missing background should not throw', () => {
expect(() =>
svgPlugin.prepareSVG(sampleNoBg, mockedMetadata)
).not.toThrow()
expect(() => svgPlugin.prepareSVG(sampleNoBg, mockedMetadata)).not.toThrow()
})
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jest.mock('os', () => ({
const mockedExeca = execa as jest.MockedFunction<typeof execa>
mockedExeca.mockImplementation(() => {
const result = {
stdout: '<svg viewBox=\"0 0 1024 768\"><rect fill="#bada5500"/><g></g></rect></svg>'
stdout:
'<svg viewBox="0 0 1024 768"><rect fill="#bada5500"/><g></g></rect></svg>'
} as unknown as ExecaChildProcess<Buffer>
return result
})
Expand Down

0 comments on commit 91f9928

Please sign in to comment.