Skip to content

Commit

Permalink
chore(deps-dev): bump prettier from 2.2.1 to 2.3.1 (#767)
Browse files Browse the repository at this point in the history
* chore(deps-dev): bump prettier from 2.2.1 to 2.3.1

Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.2.1...2.3.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: [] run lint fix with new prettier version

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Whiles <[email protected]>
Co-authored-by: Manuel Spagnolo <[email protected]>
  • Loading branch information
3 people authored Jun 8, 2021
1 parent 21a4f07 commit f5ffb28
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"mochawesome-merge": "4.2.0",
"mochawesome-report-generator": "5.2.0",
"nanoid": "3.1.23",
"prettier": "2.2.1",
"prettier": "2.3.1",
"rollup": "2.50.6",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-typescript2": "0.30.0",
Expand Down
8 changes: 4 additions & 4 deletions test/unit/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const sharedExpected = [
function test(expected: string[], location: string | undefined, expectedLocation = location) {
const channel = { addHandler: () => {} } as any

const data = ({
const data = {
location,
user: 'USER',
parameters: 'PARAMS',
Expand All @@ -46,12 +46,12 @@ function test(expected: string[], location: string | undefined, expectedLocation
ids: {
extension: 'my-test-id',
},
} as unknown) as ConnectMessage
} as unknown as ConnectMessage

const dom = makeDOM()
mockMutationObserver(dom, () => {})

const api = createAPI(channel, data, (dom.window as any) as Window)
const api = createAPI(channel, data, dom.window as any as Window)

// Test location-specific API.
expect(api).to.have.all.keys(sharedExpected.concat(expected))
Expand Down Expand Up @@ -111,7 +111,7 @@ describe('createAPI()', () => {
it('returns correct shape of the app API (app)', () => {
const expected = ['app']

const api = (test(expected, locations.LOCATION_APP_CONFIG) as unknown) as AppExtensionSDK
const api = test(expected, locations.LOCATION_APP_CONFIG) as unknown as AppExtensionSDK

expect(api.app).to.have.all.keys([
'setReady',
Expand Down
8 changes: 4 additions & 4 deletions test/unit/editor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ import { Channel } from '../../lib/channel'
import { EditorInterface } from '../../lib/types'

describe('createEditor()', () => {
const channelStub = ({
const channelStub = {
addHandler: sinon.spy(),
} as unknown) as Channel
} as unknown as Channel

const editorInterfaceMock = ({
const editorInterfaceMock = {
sidebar: [],
controls: [],
} as unknown) as EditorInterface
} as unknown as EditorInterface

const editor = createEditor(channelStub, editorInterfaceMock)

Expand Down
2 changes: 1 addition & 1 deletion test/unit/navigator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ describe('createNavigator()', () => {
SCENARIOS.forEach(({ method, args, expected, channelMethod = 'navigateToContentEntity' }) => {
describeChannelCallingMethod({
creator: (channelStub: Channel) =>
createNavigator(channelStub, ('test-id' as unknown) as IdsAPI),
createNavigator(channelStub, 'test-id' as unknown as IdsAPI),
methodName: method,
channelMethod,
args,
Expand Down

0 comments on commit f5ffb28

Please sign in to comment.