TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mohd Kashif
856
941
222.5k
unit test case for plugin directive in vue js
Sep 16 2019 5:22 AM
I am trying to write the unit test case for plugin custom directive but not able to understand from where should I start?
file - directives.js
export default {
install: function(Vue, options) {
// directive to check development env
Vue.directive("development", {
bind(el, binding, vnode) {
debug("directives.development-bind", vnode);
if (!(options.env && options.env.NODE_ENV === "devs")) {
el.innerHTML = "";
} else {
el.classList.add("development");
}
}
});
}
}
please suggest to me how to write a unit test using jest?
Reply
Answers (
0
)
Navigationbar overlapping dropdown menu
How to make => 111,121 but i want to ‘111’,‘121’