Skip to content

Commit

Permalink
Pretty fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Jan 4, 2025
1 parent 730b146 commit 1fd0762
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion superglue/lib/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const NavigationProvider = forwardRef(function NavigationProvider(
if (state && 'superglue' in state) {
dispatch(
historyChange({
pageKey: state.pageKey
pageKey: state.pageKey,
})
)

Expand Down
2 changes: 1 addition & 1 deletion superglue/lib/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const prepareStore = (

store.dispatch(
historyChange({
pageKey: initialPageKey
pageKey: initialPageKey,
})
)
store.dispatch(saveAndProcessPage(initialPageKey, initialPage))
Expand Down
2 changes: 1 addition & 1 deletion superglue/spec/features/navigation.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('start', () => {
expect(store.getState()).toEqual({
superglue: {
currentPageKey: '/home?some=123',
search: {some: "123"},
search: { some: '123' },
csrfToken: 'token',
assets: ['123.js', '123.css'],
},
Expand Down
20 changes: 10 additions & 10 deletions superglue/spec/lib/NavComponent.spec.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -305,22 +305,22 @@ describe('Nav', () => {
</Provider>
)

expect(history.location.hash).toEqual("")
expect(history.location.hash).toEqual('')
expect(history.location.state).toEqual({
"pageKey": "/home",
"posX": 0,
"posY": 0,
"superglue": true,
pageKey: '/home',
posX: 0,
posY: 0,
superglue: true,
})
const user = userEvent.setup()
await user.click(screen.getByText('click'))

expect(history.location.hash).toEqual("#top")
expect(history.location.hash).toEqual('#top')
expect(history.location.state).toEqual({
"pageKey": "/home",
"posX": 0,
"posY": 0,
"superglue": true,
pageKey: '/home',
posX: 0,
posY: 0,
superglue: true,
})
})

Expand Down
2 changes: 1 addition & 1 deletion superglue/spec/lib/reducers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('reducers', () => {

expect(nextState).toEqual({
foo: 'bar',
search: {foo: '123'},
search: { foo: '123' },
currentPageKey: '/some_url?foo=123',
})
})
Expand Down

0 comments on commit 1fd0762

Please sign in to comment.