Skip to content

Commit f7691c4

Browse files
committed
update function name
1 parent 71b1e82 commit f7691c4

File tree

4 files changed

+28
-15
lines changed

4 files changed

+28
-15
lines changed

packages-exp/auth-exp/src/core/auth/emulator.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ describe('core/auth/emulator', () => {
9191
});
9292

9393
it('checks the scheme properly', () => {
94-
expect(() => connectAuthEmulator(auth, 'http://localhost:2020')).not.to.throw;
94+
expect(() => connectAuthEmulator(auth, 'http://localhost:2020')).not.to
95+
.throw;
9596
delete auth.config.emulator;
9697
expect(() => connectAuthEmulator(auth, 'https://localhost:2020')).not.to
9798
.throw;
@@ -131,7 +132,9 @@ describe('core/auth/emulator', () => {
131132

132133
it('logs out the warning but has no banner if disableBanner true', () => {
133134
sinon.stub(console, 'info');
134-
connectAuthEmulator(auth, 'http://localhost:2020', { disableWarnings: true });
135+
connectAuthEmulator(auth, 'http://localhost:2020', {
136+
disableWarnings: true
137+
});
135138
expect(console.info).to.have.been.calledWith(
136139
'WARNING: You are using the Auth Emulator,' +
137140
' which is intended for local testing only. Do not use with' +
@@ -181,9 +184,9 @@ describe('core/auth/emulator', () => {
181184
});
182185

183186
it('also stringifies the current user', () => {
184-
auth.currentUser = ({
187+
auth.currentUser = {
185188
toJSON: (): object => ({ foo: 'bar' })
186-
} as unknown) as UserInternal;
189+
} as unknown as UserInternal;
187190
expect(JSON.stringify(auth)).to.eq(
188191
'{"apiKey":"test-api-key","authDomain":"localhost",' +
189192
'"appName":"test-app","currentUser":{"foo":"bar"}}'

packages-exp/functions-compat/src/service.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Firebase Functions > Service', () => {
3131
let httpsCallableStub: SinonStub = stub();
3232

3333
before(() => {
34-
functionsEmulatorStub = stub(functionsExp, 'useFunctionsEmulator');
34+
functionsEmulatorStub = stub(functionsExp, 'connectFunctionsEmulator');
3535
httpsCallableStub = stub(functionsExp, 'httpsCallable');
3636
});
3737

packages/firestore/src/api/database.ts

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ export class IndexedDbPersistenceProvider implements PersistenceProvider {
199199
* to the functional API of firestore-exp.
200200
*/
201201
export class Firestore
202-
implements PublicFirestore, FirebaseService, Compat<ExpFirebaseFirestore> {
202+
implements PublicFirestore, FirebaseService, Compat<ExpFirebaseFirestore>
203+
{
203204
_appCompat?: FirebaseApp;
204205
constructor(
205206
databaseIdOrApp: DatabaseId | FirebaseApp,
@@ -568,7 +569,8 @@ export class WriteBatch implements PublicWriteBatch, Compat<ExpWriteBatch> {
568569
class FirestoreDataConverter<U>
569570
implements
570571
UntypedFirestoreDataConverter<U>,
571-
Compat<PublicFirestoreDataConverter<U>> {
572+
Compat<PublicFirestoreDataConverter<U>>
573+
{
572574
private static readonly INSTANCES = new WeakMap();
573575

574576
private constructor(
@@ -643,7 +645,8 @@ class FirestoreDataConverter<U>
643645
* A reference to a particular document in a collection in the database.
644646
*/
645647
export class DocumentReference<T = PublicDocumentData>
646-
implements PublicDocumentReference<T>, Compat<ExpDocumentReference<T>> {
648+
implements PublicDocumentReference<T>, Compat<ExpDocumentReference<T>>
649+
{
647650
private _userDataWriter: UserDataWriter;
648651

649652
constructor(
@@ -927,7 +930,8 @@ export function wrapObserver<CompatType, ExpType>(
927930
export interface SnapshotOptions extends PublicSnapshotOptions {}
928931

929932
export class DocumentSnapshot<T = PublicDocumentData>
930-
implements PublicDocumentSnapshot<T>, Compat<ExpDocumentSnapshot<T>> {
933+
implements PublicDocumentSnapshot<T>, Compat<ExpDocumentSnapshot<T>>
934+
{
931935
constructor(
932936
private readonly _firestore: Firestore,
933937
readonly _delegate: ExpDocumentSnapshot<T>
@@ -969,7 +973,8 @@ export class DocumentSnapshot<T = PublicDocumentData>
969973

970974
export class QueryDocumentSnapshot<T = PublicDocumentData>
971975
extends DocumentSnapshot<T>
972-
implements PublicQueryDocumentSnapshot<T> {
976+
implements PublicQueryDocumentSnapshot<T>
977+
{
973978
data(options?: PublicSnapshotOptions): T {
974979
const data = this._delegate.data(options);
975980
debugAssert(
@@ -981,7 +986,8 @@ export class QueryDocumentSnapshot<T = PublicDocumentData>
981986
}
982987

983988
export class Query<T = PublicDocumentData>
984-
implements PublicQuery<T>, Compat<ExpQuery<T>> {
989+
implements PublicQuery<T>, Compat<ExpQuery<T>>
990+
{
985991
private readonly _userDataWriter: UserDataWriter;
986992

987993
constructor(readonly firestore: Firestore, readonly _delegate: ExpQuery<T>) {
@@ -1159,7 +1165,8 @@ export class Query<T = PublicDocumentData>
11591165
}
11601166

11611167
export class DocumentChange<T = PublicDocumentData>
1162-
implements PublicDocumentChange<T>, Compat<ExpDocumentChange<T>> {
1168+
implements PublicDocumentChange<T>, Compat<ExpDocumentChange<T>>
1169+
{
11631170
constructor(
11641171
private readonly _firestore: Firestore,
11651172
readonly _delegate: ExpDocumentChange<T>
@@ -1183,7 +1190,8 @@ export class DocumentChange<T = PublicDocumentData>
11831190
}
11841191

11851192
export class QuerySnapshot<T = PublicDocumentData>
1186-
implements PublicQuerySnapshot<T>, Compat<ExpQuerySnapshot<T>> {
1193+
implements PublicQuerySnapshot<T>, Compat<ExpQuerySnapshot<T>>
1194+
{
11871195
constructor(
11881196
readonly _firestore: Firestore,
11891197
readonly _delegate: ExpQuerySnapshot<T>
@@ -1238,7 +1246,8 @@ export class QuerySnapshot<T = PublicDocumentData>
12381246

12391247
export class CollectionReference<T = PublicDocumentData>
12401248
extends Query<T>
1241-
implements PublicCollectionReference<T> {
1249+
implements PublicCollectionReference<T>
1250+
{
12421251
constructor(
12431252
readonly firestore: Firestore,
12441253
readonly _delegate: ExpCollectionReference<T>

packages/storage/compat/service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ import { Compat } from '@firebase/util';
3333
* @param opt_url gs:// url to a custom Storage Bucket
3434
*/
3535
export class StorageServiceCompat
36-
implements types.FirebaseStorage, Compat<StorageService> {
36+
implements types.FirebaseStorage, Compat<StorageService>
37+
{
3738
constructor(public app: FirebaseApp, readonly _delegate: StorageService) {}
3839

3940
INTERNAL = {

0 commit comments

Comments
 (0)