Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tylim88 committed Mar 23, 2024
1 parent e10fe9d commit 3d42b04
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tests/discriminatedUnion.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ type DU = MetaTypeCreator<
>
const du = getFirelord<DU>(getFirestore(), 'abc')

type C = DU['compare']

const docRef = du.doc('123')
describe('test discrimination unions', () => {
it('test update', () => {
Expand Down Expand Up @@ -76,8 +74,10 @@ describe('test discrimination unions', () => {
})

it('test query', () => {
query(du.collection(), where('a.b', '==', 1))
// @ts-expect-error
query(du.collection(), where('a.b', '==', 2))
;() => {
query(du.collection(), where('a.b', '==', 1))
// @ts-expect-error
query(du.collection(), where('a.b', '==', 2))
}
})
})

0 comments on commit 3d42b04

Please sign in to comment.