44 bindCollection ,
55} from '../../../src/core'
66import { db , createOps } from '../../src'
7- import { firestore } from 'firebase'
7+ import * as firestore from '@ firebase/firestore-types '
88import { Ref , ref } from 'vue'
99
1010describe ( 'options' , ( ) => {
@@ -32,7 +32,8 @@ describe('options', () => {
3232 bindDocument ( target , document , ops , resolve , reject , { serialize : spy } )
3333 } )
3434 expect ( spy ) . toHaveBeenCalledTimes ( 1 )
35- expect ( spy ) . toBeCalledWith (
35+ expect ( spy ) . toHaveBeenCalledWith (
36+ // @ts -ignore WTF TS?????
3637 expect . objectContaining ( { data : expect . any ( Function ) } )
3738 )
3839 expect ( target . value ) . toEqual ( { bar : 'foo' } )
@@ -49,6 +50,7 @@ describe('options', () => {
4950 } )
5051 expect ( spy ) . toHaveBeenCalledTimes ( 1 )
5152 expect ( spy ) . toBeCalledWith (
53+ // @ts -ignore WTF TS?????
5254 expect . objectContaining ( { data : expect . any ( Function ) } )
5355 )
5456 expect ( target . value ) . toEqual ( [ { bar : 'foo' } ] )
@@ -65,6 +67,7 @@ describe('options', () => {
6567 } )
6668 expect ( spy ) . toHaveBeenCalledTimes ( 1 )
6769 expect ( spy ) . toBeCalledWith (
70+ // @ts -ignore WTF TS?????
6871 expect . objectContaining ( { data : expect . any ( Function ) } )
6972 )
7073 expect ( target . value ) . toEqual ( { bar : 'foo' } )
@@ -83,6 +86,7 @@ describe('options', () => {
8386 } )
8487 expect ( spy ) . toHaveBeenCalledTimes ( 1 )
8588 expect ( spy ) . toBeCalledWith (
89+ // @ts -ignore WTF TS?????
8690 expect . objectContaining ( { data : expect . any ( Function ) } )
8791 )
8892 expect ( target . value ) . toEqual ( [ { bar : 'foo' } ] )
0 commit comments