Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

add simple directive and test #110

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

Closed
chiptus wants to merge 3 commits into testing-library:master from chiptus:test-using-directive

Conversation

@chiptus
Copy link
Contributor

@chiptus chiptus commented Nov 4, 2019

fixes #108

import {value as valueDirective} from './components/directives/v-value'
import CompWithDirective from './components/CompWithDirective.vue'

test('element should have the same value as the directive', async () => {
Copy link
Member

@afontcu afontcu Nov 4, 2019

Choose a reason for hiding this comment

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

I feel the example is a bit "wordy" (it says value a lot 😝).

I think it would be best if we used a simpler example with a clearer directive. Also I'd love to avoid using updateProps, as it has actually nothing to do with directives, and people may get the wrong impression.

What do you think about that?

Copy link
Contributor Author

chiptus commented Nov 4, 2019

this was closed because I referenced it in #111, I'll fix the issues and reopen

afontcu reacted with thumbs up emoji

@afontcu afontcu reopened this Nov 6, 2019
Copy link
Member

afontcu commented Jan 3, 2020

Hi @chiptus! Any chance you could take a look at this? 😄

have a happy new year!

Copy link
Contributor Author

chiptus commented Jan 3, 2020

will do

Copy link
Member

afontcu commented Feb 22, 2020

Fixed in #120. Thanks for this, though! 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@afontcu afontcu afontcu left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

add example for using directives

2 participants

AltStyle によって変換されたページ (->オリジナル) /