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

make counter test compile #588

Merged
merged 1 commit into from
Feb 28, 2023
Merged

make counter test compile #588

merged 1 commit into from
Feb 28, 2023

Conversation

eiswind
Copy link
Contributor

@eiswind eiswind commented Feb 27, 2023

a had to make some small tweaks to let the counter test example compile and pass.

I am not sure if web-sys is really needed, but it is used with websys::HtmlElement in the test.

please have a look at it.

@@ -84,22 +84,22 @@ fn inc() {
let clear = div
.first_child()
.unwrap()
.dyn_into::<HtmlElement>()
.dyn_into::<web_sys::HtmlElement>()

Choose a reason for hiding this comment

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

I'm not certain these added turbofish are needed, the following command seems to run with just the other changes you proposed:
wasm-pack test --node

@gbj
Copy link
Collaborator

gbj commented Feb 28, 2023

Thanks! I think you could probably consolidate some of the web_sys::HtmlElement into a single use web_sys::HtmlElement import at the top, but this looks fine to me and I'll merge it if it passes the CI tests which it should.

@gbj gbj merged commit ab6ddc1 into leptos-rs:main Feb 28, 2023
vaniusrb pushed a commit to vaniusrb/leptos that referenced this pull request Mar 1, 2023
gbj pushed a commit that referenced this pull request Mar 21, 2023
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.

3 participants