Skip to content

Commit 1d71686

Browse files
Demo app vue 3 - Parent visible (#181)
* add more context for call in computed properties * fix(test): Test for parent visibility using isVisible Co-authored-by: Lachlan Miller <[email protected]>
1 parent c1daebf commit 1d71686

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo-app-vue-3/tests/unit/Parent.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe("Parent", () => {
88
it("does not render a span", () => {
99
const wrapper = mount(Parent)
1010

11-
expect(wrapper.find("span").element).not.toBeVisible()
11+
expect(wrapper.find("span").isVisible()).toBe(false)
1212
})
1313

1414
it("does render a span", () => {
@@ -18,7 +18,7 @@ describe("Parent", () => {
1818
}
1919
})
2020

21-
expect(wrapper.find("span").element).toBeVisible()
21+
expect(wrapper.find("span").isVisible()).toBe(true)
2222
})
2323

2424
it("does not render a Child component", () => {

0 commit comments

Comments
 (0)