Skip to content

Commit 0438b10

Browse files
authored
Fix compilation error in integration tests (#798)
Introduced by #790
1 parent 0f6c02e commit 0438b10

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/integration/database.spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ describe('admin.database', () => {
170170
});
171171
});
172172

173-
// Check for type compilation. This method is not invoked by any
174-
// tests. But it will trigger a TS compilation failure if the RTDB
175-
// typings were not loaded correctly.
173+
// Check for type compilation. This method is not invoked by any tests. But it
174+
// will trigger a TS compilation failure if the RTDB typings were not loaded
175+
// correctly. (Marked as export to avoid compilation warning.)
176176
//
177177
// eslint-disable-next-line @typescript-eslint/no-unused-vars
178-
function addValueEventListener(
178+
export function addValueEventListener(
179179
db: admin.database.Database,
180180
callback: (s: admin.database.DataSnapshot | null) => any): void {
181181
const eventType: admin.database.EventType = 'value';

0 commit comments

Comments
 (0)