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

test: #255 10_minimum_example/060_template_compiler2 #261

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

2nofa11
Copy link
Sponsor Contributor

@2nofa11 2nofa11 commented Feb 9, 2024

I have added a test case based on the PR.

[Info]
Because the line break position of the img tag is changed by compilation, the code of the img tag in the forecast result is slightly different from the input content.(here is the target line)

[Other Solutions]
Also, please let me know if you prefer to test using "querySelector" as a testing method.

related: #255

expect(host.innerHTML).toBe(
`<div class="container" style="text-align: center">
<h2>Hello, chibivue!</h2>
<img width="150px" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/1200px-Vue.js_Logo_2.svg.png" alt="Vue.js Logo">
Copy link
Sponsor Contributor Author

Choose a reason for hiding this comment

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

[fyi]
Slightly different from argument of createApp method.

  • Argument of createApp(L20-L24)
    with line feed and "/".
  • This line
    without line feed and "/"

Copy link
Owner

Choose a reason for hiding this comment

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

Hmm, I see.

I'm a bit hesitant, but for now, I'll consider it not a problem!

Copy link
Owner

@ubugeeei ubugeeei left a comment

Choose a reason for hiding this comment

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

@2nofa11 Thanks!

expect(host.innerHTML).toBe(
`<div class="container" style="text-align: center">
<h2>Hello, chibivue!</h2>
<img width="150px" src="https://upload.wikimedia.org/wikipedia/commons/thumb/9/95/Vue.js_Logo_2.svg/1200px-Vue.js_Logo_2.svg.png" alt="Vue.js Logo">
Copy link
Owner

Choose a reason for hiding this comment

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

Hmm, I see.

I'm a bit hesitant, but for now, I'll consider it not a problem!

@ubugeeei ubugeeei merged commit bb16dd7 into ubugeeei:main Feb 9, 2024
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.

2 participants