Skip to content

Commit

Permalink
Fix unit test related to clearable prop
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyFeliz committed Jan 18, 2020
1 parent 8549df9 commit 9bc2758
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/email-dropdown.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ describe("EmailDropdown.vue", () => {
domains: ["google.com"],
defaultDomains: ["hotmail.com", "outlook.com"],
maxSuggestions: 4,
closeOnClickOutside: true
closeOnClickOutside: true,
clearable: false
};
});

Expand Down Expand Up @@ -85,6 +86,7 @@ describe("EmailDropdown.vue", () => {
});

it("clears the email field when the x is clicked", async () => {
propsData.clearable = true;
const wrapper = shallowMount(EmailDropdown, {
propsData
});
Expand Down

0 comments on commit 9bc2758

Please sign in to comment.