Skip to content
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

Add integration tests for EditorDocument class #40

Open
gohabereg opened this issue Oct 24, 2023 · 0 comments
Open

Add integration tests for EditorDocument class #40

gohabereg opened this issue Oct 24, 2023 · 0 comments

Comments

@gohabereg
Copy link
Member

gohabereg commented Oct 24, 2023

By integration tests we need to check that all calls are being propagated into child entities through the whole model

All checks should be done by assertion on serialized method of EditorDocument

Method Comment
constructor check that the whole model is initialized with data passed to constructor
addBlock check that block is created and initialized with data passed to the method
updateValue check that value of related ValueNode is updated
updateTuneData check if related BlockTune value is updated
insertText check that related TextNode value is updated
removeText check that related TextNode value is updated
format check that related TextNode value is updated
unformat check that related TextNode value is updated

Final test case should assert on "real-life" scenario like adding/removing some blocks and updating their nodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant