Skip to content

Commit 7869f29

Browse files
committed
fix test
1 parent 7b8e769 commit 7869f29

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/tests/discriminatedUnion.test.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@ type DU = MetaTypeCreator<
1212
| { x: { y: 1; z: 2; u: 3 } | { y: 'a'; w: 'b'; v: 'c' } | false },
1313
'abc'
1414
>
15-
const du = getFirelord<DU>(getFirestore(), 'abc')
1615

17-
type C = DU['compare']
18-
19-
const docRef = du.doc('123')
2016
describe('test discrimination unions', () => {
2117
it('test update', () => {
2218
;() => {
19+
const du = getFirelord<DU>(getFirestore(), 'abc')
20+
const docRef = du.doc('123')
2321
updateDoc(docRef, { a: { b: 1 } })
2422
// @ts-expect-error
2523
updateDoc(docRef, { a: { b: 2 } })
@@ -77,6 +75,7 @@ describe('test discrimination unions', () => {
7775

7876
it('test query', () => {
7977
;() => {
78+
const du = getFirelord<DU>(getFirestore(), 'abc')
8079
query(du.collection(), where('a.b', '==', 1))
8180
// @ts-expect-error
8281
query(du.collection(), where('a.b', '==', 2))

0 commit comments

Comments
 (0)