Skip to content

Commit 8f4b9cf

Browse files
committed
add changeset, fix test
1 parent 71075a5 commit 8f4b9cf

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/app-check': patch
3+
---
4+
5+
Update platform logging to use new endpoint.

packages/app-check/test/util.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import {
3030
} from '@firebase/component';
3131
import { AppCheckService } from '../src/factory';
3232
import { AppCheck, CustomProvider } from '../src';
33+
import { HeartbeatService } from '@firebase/app/dist/app/src/types';
3334

3435
export const FAKE_SITE_KEY = 'fake-site-key';
3536

@@ -99,7 +100,10 @@ export function getFakeHeartbeatServiceProvider(
99100
container.addComponent(
100101
new Component(
101102
'heartbeat',
102-
() => ({ getPlatformInfoString: () => fakeLogString }),
103+
() =>
104+
({
105+
getHeartbeatsHeader: () => Promise.resolve(fakeLogString)
106+
} as HeartbeatService),
103107
ComponentType.PRIVATE
104108
)
105109
);

0 commit comments

Comments
 (0)