File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,23 @@ test.beforeEach(async t => {
36
36
37
37
test ( 'does nothing with no firestore' , t => {
38
38
const vm = new Vue ( {
39
- render ( h ) {
40
- return h ( 'p' , 'eh' )
41
- } ,
39
+ render : h => ( 'p' , 'foo' ) ,
42
40
data : ( ) => ( { items : null } ) ,
43
41
} )
44
42
t . deepEqual ( vm . items , null )
45
43
} )
44
+
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
+ render : h => ( 'p' , 'foo' ) ,
54
+ data : ( ) => ( { items : null } ) ,
55
+ } )
56
+ t . truthy ( vm . _firestoreUnbinds )
57
+ t . deepEqual ( Object . keys ( vm . _firestoreUnbinds ) , [ ] )
58
+ } )
You can’t perform that action at this time.
0 commit comments