From b676dc494af7d5475d98a01c1b98d5b89c0360bf Mon Sep 17 00:00:00 2001 From: Rich Gowman Date: Tue, 3 Mar 2020 11:31:18 -0500 Subject: [PATCH] Fix compilation error in integration tests Introduced by https://github.com/firebase/firebase-admin-node/pull/790 --- test/integration/database.spec.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/integration/database.spec.ts b/test/integration/database.spec.ts index 7fed7be2a0..b64e099813 100644 --- a/test/integration/database.spec.ts +++ b/test/integration/database.spec.ts @@ -170,12 +170,12 @@ describe('admin.database', () => { }); }); -// Check for type compilation. This method is not invoked by any -// tests. But it will trigger a TS compilation failure if the RTDB -// typings were not loaded correctly. +// Check for type compilation. This method is not invoked by any tests. But it +// will trigger a TS compilation failure if the RTDB typings were not loaded +// correctly. (Marked as export to avoid compilation warning.) // // eslint-disable-next-line @typescript-eslint/no-unused-vars -function addValueEventListener( +export function addValueEventListener( db: admin.database.Database, callback: (s: admin.database.DataSnapshot | null) => any): void { const eventType: admin.database.EventType = 'value';