Skip to content

Commit

Permalink
Remove duplicate menu test
Browse files Browse the repository at this point in the history
  • Loading branch information
wssheldon committed Dec 4, 2023
1 parent a8e3a34 commit f4a1935
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/dispatch/static/dispatch/src/tests/SearchPopover.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,32 +166,6 @@ test("emits item-selected when an item is selected", async () => {
expect(wrapper.emitted()["item-selected"]).toEqual([["Banana"]])
})

test("toggleMenu changes the value of menu", async () => {
const wrapper = mount(SearchPopover, {
props: {
hotkeys: ["a", "b", "c"],
initialValue: "Initial",
items: ["Apple", "Banana", "Cherry"],
label: "Label",
},
global: {
plugins: [vuetify],
components: {
Hotkey,
},
},
})

// assert that menu is false initially
expect(wrapper.vm.menu).toBe(false)

// call toggleMenu method
await wrapper.vm.toggleMenu()

// assert that menu is true
expect(wrapper.vm.menu).toBe(true)
})

test("updates selectedItem when initialValue prop changes", async () => {
const wrapper = mount(SearchPopover, {
props: {
Expand Down

0 comments on commit f4a1935

Please sign in to comment.