We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a057df commit 17f65e4Copy full SHA for 17f65e4
packages/database/test/database.test.ts
@@ -246,12 +246,12 @@ describe('Database Tests', () => {
246
});
247
248
it('refFromURL() validates domain', () => {
249
- const db = (firebase as any).database();
250
- expect(() => {
251
- const ref = db.refFromURL(
252
- 'https://thisisnotarealfirebase.firebaseio.com/path/to/data'
253
- );
254
- }).to.throw(/does not match.*database/i);
+ const db = (firebase as any)
+ .app()
+ .database('https://thisisreal.firebaseio.com');
+ expect(() =>
+ db.refFromURL('https://thisisnotreal.firebaseio.com/path/to/data')
+ ).to.throw(/does not match.*database/i);
255
256
257
it('refFromURL() validates argument', () => {
0 commit comments