Skip to content

Commit df7d718

Browse files
committed
Add a test
1 parent 9d1fdcb commit df7d718

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/functions/src/service.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ describe('Firebase Functions > Service', () => {
7070
assert.equal(service._url('foo'), 'https://mydomain.com/foo');
7171
});
7272

73+
it('correctly sets custom domain with path', () => {
74+
service = createTestService(app, 'https://mydomain.com/functions');
75+
assert.equal(service._url('foo'), 'https://mydomain.com/functions/foo');
76+
});
77+
7378
it('prefers emulator to custom domain', () => {
7479
const service = createTestService(app, 'https://mydomain.com');
7580
connectFunctionsEmulator(service, 'localhost', 5005);

0 commit comments

Comments
 (0)