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

Refactor tests to remove common setup code #12

Open
dmitrym0 opened this issue May 28, 2022 · 1 comment
Open

Refactor tests to remove common setup code #12

dmitrym0 opened this issue May 28, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@dmitrym0
Copy link
Owner

tests share a lot of boilerplate, specifically they all start with this code:

 (with-temp-buffer
                (org-mode)
                (insert mock-org-contents)
                <body>
 )

There's gotta be a way to pass the body in rather than copying and pasting the setup every time.

@dmitrym0 dmitrym0 added the enhancement New feature or request label May 28, 2022
@dmitrym0 dmitrym0 added this to the v1.1 milestone Jul 25, 2022
@dmitrym0
Copy link
Owner Author

dmitrym0 commented Aug 4, 2022

This is implemented in another branch.

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

No branches or pull requests

1 participant