editor-js / document-model

❗️WIP❗️
Apache License 2.0
10 stars 2 forks source link

refactor(editor-document): addBlock method creates a new block #38

Closed ilyamore88 closed 11 months ago

ilyamore88 commented 11 months ago

Closes #18

Now, the .addBlock method receives the block node data object and creates a new instance of the BlockNode.

github-actions[bot] commented 11 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements 100% 409/409
🟢 Branches 99.02% 101/102
🟢 Functions 99.14% 115/116
🟢 Lines 100% 390/390

Test suite run success

252 tests passing in 14 suites.

Report generated by 🧪jest coverage report action from 82cfd7afd5bdd35010e1c64d4f041a1563d5767d

github-actions[bot] commented 11 months ago

✅ Mutation testing passed

Report: https://dashboard.stryker-mutator.io/reports/github.com/editor-js/document-model/PR-38

Mutated files
src/entities/EditorDocument/types/BlockNodeData.ts
src/entities/EditorDocument/index.ts
src/entities/EditorDocument/types/index.ts