Skip to content

[Feature] Add tests of state manager #2023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove initial state
  • Loading branch information
ilyamore88 committed Apr 10, 2022
commit 99035cb1b0e7eda91842c6f15a452377ca595daa
25 changes: 1 addition & 24 deletions src/components/store/index.ts
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
import reducer from './reducer';
import createStore from './createStore';

const initialState = {
data: {
time: 1649592664578,
blocks: [
{
id: '3JPEqh8_Wc',
type: 'header',
data: {
text: 'Editor.js',
level: 2,
},
},
{
id: 'AsbMKCuatV',
type: 'paragraph',
data: {
text: 'Hey. Meet the new Editor. On this page you can see it in action — try to edit this text.',
},
},
],
},
};

const store = createStore(reducer, initialState);
const store = createStore(reducer);

export default store;