Skip to content

Commit 1084455

Browse files
committed
Update error string check in compat test.
1 parent ee04817 commit 1084455

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

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

302302
expect(() => {
303303
db.useEmulator('localhost', 1234);
304-
}).to.throw(/Cannot call useEmulator/);
304+
}).to.throw(/connectDatabaseEmulator() cannot initialize/);
305305
});
306306

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

packages/database/src/api/Database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ export function connectDatabaseEmulator(
364364
return;
365365
}
366366
fatal(
367-
'connectDatabaseEmulator() cannot alter the emulator configuration after the database instance has started.'
367+
'connectDatabaseEmulator() cannot initialize or alter the emulator configuration after the database instance has started.'
368368
);
369369
}
370370

0 commit comments

Comments
 (0)