Skip to content

Commit a04b531

Browse files
committed
Update database.test.ts
1 parent cbaf931 commit a04b531

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/database-compat/test/database.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,9 @@ describe('Database Tests', () => {
301301

302302
expect(() => {
303303
db.useEmulator('localhost', 1234);
304-
}).to.throw(/FIREBASE FATAL ERROR: connectDatabaseEmulator() cannot initialize/);
304+
}).to.throw(
305+
'FIREBASE FATAL ERROR: connectDatabaseEmulator() cannot initialize or alter the emulator configuration after the database instance has started.'
306+
);
305307
});
306308

307309
it('refFromURL returns an emulated ref with useEmulator', () => {

0 commit comments

Comments
 (0)