-
Notifications
You must be signed in to change notification settings - Fork 990
port public shutdown to web sdk. #2045
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
8dd846d
2ab4b34
c9e1495
efffc5e
a07588c
3e6bfca
692dfa3
1438df0
eeec389
45c65a1
59ea6b4
8d957d7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1073,7 +1073,7 @@ apiDescribe('Database', (persistence: boolean) => { | |
| it('can start a new instance after shut down', async () => { | ||
| return withTestDoc(persistence, async docRef => { | ||
| const firestore = docRef.firestore; | ||
| await firestore.INTERNAL.shutdown(); | ||
| await (firestore as any)._shutdown(); | ||
|
||
|
|
||
| const newFirestore = firebase.firestore!(firestore.app); | ||
| expect(newFirestore).to.not.equal(firestore); | ||
|
|
@@ -1092,14 +1092,14 @@ apiDescribe('Database', (persistence: boolean) => { | |
| const app = docRef.firestore.app; | ||
| await app.delete(); | ||
|
|
||
| expect(docRef.firestore.INTERNAL.isShutdown()).to.be.true; | ||
| expect((docRef.firestore as any)._isShutdown).to.be.true; | ||
| }); | ||
| }); | ||
|
|
||
| it('new operation after shutdown should throw', async () => { | ||
| await withTestDoc(persistence, async docRef => { | ||
| const firestore = docRef.firestore; | ||
| await firestore.INTERNAL.shutdown(); | ||
| await (firestore as any)._shutdown(); | ||
|
|
||
| expect(() => { | ||
| firestore.doc(docRef.path).set({ foo: 'bar' }); | ||
|
|
@@ -1110,8 +1110,8 @@ apiDescribe('Database', (persistence: boolean) => { | |
| it('calling shutdown mutiple times should proceed', async () => { | ||
| await withTestDoc(persistence, async docRef => { | ||
| const firestore = docRef.firestore; | ||
| await firestore.INTERNAL.shutdown(); | ||
| await firestore.INTERNAL.shutdown(); | ||
| await (firestore as any)._shutdown(); | ||
| await (firestore as any)._shutdown(); | ||
|
|
||
| expect(() => { | ||
| firestore.doc(docRef.path).set({ foo: 'bar' }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leading spaces seems off... If you run
yarn lintfrom packages/firestore, it should complain about this (and it's complaining in the CI build too).