Skip to content

Commit

Permalink
Update error string check in compat test.
Browse files Browse the repository at this point in the history
  • Loading branch information
DellaBitta committed Feb 6, 2025
1 parent ee04817 commit 1084455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/database-compat/test/database.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ describe('Database Tests', () => {

expect(() => {
db.useEmulator('localhost', 1234);
}).to.throw(/Cannot call useEmulator/);
}).to.throw(/connectDatabaseEmulator() cannot initialize/);
});

it('refFromURL returns an emulated ref with useEmulator', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/database/src/api/Database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ export function connectDatabaseEmulator(
return;
}
fatal(
'connectDatabaseEmulator() cannot alter the emulator configuration after the database instance has started.'
'connectDatabaseEmulator() cannot initialize or alter the emulator configuration after the database instance has started.'
);
}

Expand Down

0 comments on commit 1084455

Please sign in to comment.