Skip to content

Commit

Permalink
chore: quality fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Oct 23, 2024
1 parent 38f3855 commit 4d013d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/editors/containers/TextEditor/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jest.mock('../../data/redux', () => ({
showRawEditor: jest.fn(state => ({ showRawEditor: state })),
images: jest.fn(state => ({ images: state })),
isLibrary: jest.fn(state => ({ isLibrary: state })),
blockId: jest.fn(state => ({ blockId: state})),
blockId: jest.fn(state => ({ blockId: state })),
learningContextId: jest.fn(state => ({ learningContextId: state })),
},
requests: {
Expand Down
2 changes: 1 addition & 1 deletion src/editors/data/redux/app/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const app = createSlice({
blockValue: payload,
blockTitle: payload.data.display_name,
}),
setBlockId: (state, { payload }) => ({...state, blockId: payload,}),
setBlockId: (state, { payload }) => ({ ...state, blockId: payload }),

Check warning on line 45 in src/editors/data/redux/app/reducer.js

View check run for this annotation

Codecov / codecov/patch

src/editors/data/redux/app/reducer.js#L45

Added line #L45 was not covered by tests
setStudioView: (state, { payload }) => ({ ...state, studioView: payload }),
setBlockContent: (state, { payload }) => ({ ...state, blockContent: payload }),
setBlockTitle: (state, { payload }) => ({ ...state, blockTitle: payload }),
Expand Down

0 comments on commit 4d013d7

Please sign in to comment.