Skip to content

Commit 0e6fa13

Browse files
Test case for issue foxbenjaminfox#50
1 parent e96690a commit 0e6fa13

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: test/index.js

+12
Original file line numberDiff line numberDiff line change
@@ -808,3 +808,15 @@ test("$asyncComputed[name].update triggers re-evaluation", t => {
808808
})
809809
})
810810
})
811+
812+
test("Plain components with neither `data` nor `asyncComputed` still work (issue #50)", t => {
813+
t.plan(1)
814+
const vm = new Vue({
815+
computed: {
816+
a () {
817+
return 1
818+
}
819+
}
820+
})
821+
t.equal(vm.a, 1)
822+
})

0 commit comments

Comments
 (0)