@@ -61,22 +61,24 @@ const TEST_ERROR = new FirestoreError('internal', 'Test Error');
61
61
62
62
function mutationKey ( user : User , batchId : BatchId ) : string {
63
63
if ( user . isAuthenticated ( ) ) {
64
- return `fs_mutations_ ${
64
+ return `firestore_mutations_ ${
65
65
persistenceHelpers . TEST_PERSISTENCE_PREFIX
66
66
} _${ batchId } _${ user . uid } `;
67
67
} else {
68
- return `fs_mutations_ ${
68
+ return `firestore_mutations_ ${
69
69
persistenceHelpers . TEST_PERSISTENCE_PREFIX
70
70
} _${ batchId } `;
71
71
}
72
72
}
73
73
74
74
function targetKey ( targetId : TargetId ) : string {
75
- return `fs_targets_${ persistenceHelpers . TEST_PERSISTENCE_PREFIX } _${ targetId } ` ;
75
+ return `firestore_targets_${
76
+ persistenceHelpers . TEST_PERSISTENCE_PREFIX
77
+ } _${ targetId } `;
76
78
}
77
79
78
80
function onlineStateKey ( ) : string {
79
- return 'fs_online_state ' ;
81
+ return 'firestore_online_state ' ;
80
82
}
81
83
82
84
interface TestSharedClientState {
@@ -227,7 +229,7 @@ describe('WebStorageSharedClientState', () => {
227
229
) : void {
228
230
const actual = JSON . parse (
229
231
localStorage . getItem (
230
- `fs_clients_ ${
232
+ `firestore_clients_ ${
231
233
persistenceHelpers . TEST_PERSISTENCE_PREFIX
232
234
} _${ primaryClientId } `
233
235
)
@@ -405,7 +407,7 @@ describe('WebStorageSharedClientState', () => {
405
407
406
408
describe ( 'combines client state' , ( ) => {
407
409
const secondaryClientId = AutoId . newId ( ) ;
408
- const secondaryClientStateKey = `fs_clients_ ${
410
+ const secondaryClientStateKey = `firestore_clients_ ${
409
411
persistenceHelpers . TEST_PERSISTENCE_PREFIX
410
412
} _${ secondaryClientId } `;
411
413
@@ -578,7 +580,7 @@ describe('WebStorageSharedClientState', () => {
578
580
} ) ;
579
581
580
582
it ( 'ignores invalid data' , async ( ) => {
581
- const secondaryClientStateKey = `fs_clients_ ${
583
+ const secondaryClientStateKey = `firestore_clients_ ${
582
584
persistenceHelpers . TEST_PERSISTENCE_PREFIX
583
585
} _${ AutoId . newId ( ) } `;
584
586
@@ -725,10 +727,10 @@ describe('WebStorageSharedClientState', () => {
725
727
const firstClientTargetId : TargetId = 1 ;
726
728
const secondClientTargetId : TargetId = 2 ;
727
729
728
- const firstClientStorageKey = `fs_clients_ ${
730
+ const firstClientStorageKey = `firestore_clients_ ${
729
731
persistenceHelpers . TEST_PERSISTENCE_PREFIX
730
732
} _${ AutoId . newId ( ) } `;
731
- const secondClientStorageKey = `fs_clients_ ${
733
+ const secondClientStorageKey = `firestore_clients_ ${
732
734
persistenceHelpers . TEST_PERSISTENCE_PREFIX
733
735
} _${ AutoId . newId ( ) } `;
734
736
0 commit comments