Skip to content

Commit 17f65e4

Browse files
Fix more tests
1 parent 8a057df commit 17f65e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/database/test/database.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,12 +246,12 @@ describe('Database Tests', () => {
246246
});
247247

248248
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);
249+
const db = (firebase as any)
250+
.app()
251+
.database('https://thisisreal.firebaseio.com');
252+
expect(() =>
253+
db.refFromURL('https://thisisnotreal.firebaseio.com/path/to/data')
254+
).to.throw(/does not match.*database/i);
255255
});
256256

257257
it('refFromURL() validates argument', () => {

0 commit comments

Comments
 (0)