We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4804381 commit e6716e1Copy full SHA for e6716e1
test/index.spec.js
@@ -36,10 +36,23 @@ test.beforeEach(async t => {
36
37
test('does nothing with no firestore', t => {
38
const vm = new Vue({
39
- render (h) {
40
- return h('p', 'eh')
41
- },
+ render: h => ('p', 'foo'),
42
data: () => ({ items: null }),
43
})
44
t.deepEqual(vm.items, null)
45
+
+test('setups _firestoreUnbinds', t => {
46
+ const vm = t.context.vm
47
+ t.truthy(vm._firestoreUnbinds)
48
+ t.deepEqual(Object.keys(vm._firestoreUnbinds).sort(), ['item', 'items'])
49
+})
50
51
+test('setups _firestoreUnbinds with no firestore options', t => {
52
+ const vm = new Vue({
53
54
+ data: () => ({ items: null }),
55
+ })
56
57
+ t.deepEqual(Object.keys(vm._firestoreUnbinds), [])
58
0 commit comments