Skip to content

Commit a92ea8e

Browse files
Fix Test
1 parent 8cd023c commit a92ea8e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/storage/test/unit/service.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,10 @@ describe('Firebase Storage > Service', () => {
166166
const error = testShared.assertThrows(() => {
167167
service.refFromURL('path/to/child');
168168
}, 'storage/invalid-argument');
169-
assert.match(error.message, /invalid/i);
169+
assert.match(
170+
error.message,
171+
/Expected full URL but got a child path, use ref instead/i
172+
);
170173
});
171174
it('Works with gs:// URLs', () => {
172175
const ref = service.refFromURL('gs://mybucket/child/path/image.png');

0 commit comments

Comments
 (0)