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

Added support for ref properties #185

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mcjazzyfunky
Copy link

@jorgebucaran Could you please review?

import { JSDOM } from "jsdom"
import { h, patch } from "../index.js"

// we enhance twist's original function `t`
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need generators to test this?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this may have been a misunderstanding on my side.
I was of the impression that in twist "one test" means "one invocation of a twist assert function", so this refs test file would contain a bit more than 40 tests ... and to be count properly in the summary I had to yield each single one of them.
Normally I would say this refs test file contains only three tests (with over 40 assertions).
Please show me a few lines on code how this is to be done with twist normally - thanks - and I will fix it.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries! If we merge this feature, I'll take care of the tests myself. 🙆‍♂️

@jorgebucaran jorgebucaran changed the title Added support for ref properties (see #184) Added support for ref properties Mar 30, 2021
@jorgebucaran jorgebucaran linked an issue Mar 30, 2021 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Support for React-like refs?
2 participants