Skip to content

Commit

Permalink
Apply changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
obulat committed May 2, 2023
1 parent 8d85236 commit 73fe26c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/test/unit/setup.js
Expand Up @@ -21,6 +21,9 @@ config.stubs["nuxt-link"] = Vue.component("NuxtLink", {
props: ["to"],
methods: {
handleClick() {
// This is an adaptation to mimic NuxtLink's behavior,
// see https://github.com/WordPress/openverse/pull/1118
// We should try to remove it after migrating to Nuxt 3.
this.$emit("mousedown")
this.$emit("click", new MouseEvent("click"))
},
Expand Down

0 comments on commit 73fe26c

Please sign in to comment.