-
Notifications
You must be signed in to change notification settings - Fork 896
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
Firestore: Move local store index auto-creation unit tests into the proper file #7601
Firestore: Move local store index auto-creation unit tests into the proper file #7601
Conversation
…PortToIndexedDbTest
|
Size Report 1Affected ProductsNo changes between base commit (1fd9d25) and merge commit (cdbc8af).Test Logs |
Size Analysis Report 1Affected ProductsNo changes between base commit (1fd9d25) and merge commit (cdbc8af).Test Logs |
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.
Could you please also add test, testCanAutoCreateIndexesWorksWithOrQuery
, in SQLiteLocalStoreTest.java
?
That test was part of firebase/firebase-android-sdk#5213, which I plan to port in its entirety. I'd like to do that in a separate PR though. Are you ok to merge this PR and port that test in a subsequent PR? |
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.
Porting in a separated PR sounds good to me
In #7542 and #7587 I added local store unit tests for client-side index auto-creation logic into
local_store.test.ts
, which contains the generic unit tests that apply to both "memory" local store and "indexeddb" local store. But since client-side indexing is purely a feature of indexeddb local store, I should have put the tests intolocal_store_indexeddb.test.ts
. This PR moves the tests into the correct file. This has the added benefit that uses a more modern and more readable "await" style testing rather than the promise chaining used in the generic tests.