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

Use @uprtcl/evees in tests #48

Open
8 of 9 tasks
pepoospina opened this issue Mar 8, 2021 · 0 comments
Open
8 of 9 tasks

Use @uprtcl/evees in tests #48

pepoospina opened this issue Mar 8, 2021 · 0 comments
Assignees

Comments

@pepoospina
Copy link
Collaborator

pepoospina commented Mar 8, 2021

  • instantiate an Evees service in the test
    • build a HtpSuperTest HttpConnection implementing the HttpAuthenticatedConnection interface.
    • create the HttpStore and EveesHttp services just like in Linked Thoughts app init.ts file
    • use the eveesConstructorHelper to build the evees service
  • instantiate the AppElements service, giving it a tree of TextNode elements (instead of the custom types used in LinkedThoughts app) that are enough to run the test.
    • specify the tree structure with an AppElement similar to the app.element.init.ts file, just use TextNode as the only type of data to build the tree.
    • use elements.check() to intialize the tree.
    • use elements.get() to get elements inside the tree out of their "path".
  • use the Evees service in the test to do some stuff. Create a perspective, update it, add a child...
@pepoospina pepoospina changed the title User @uprtcl/evees in tests Use @uprtcl/evees in tests Mar 9, 2021
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

2 participants