Skip to content

Commit

Permalink
fix(session replay plugin): update plugin to use the sessionReplayPro…
Browse files Browse the repository at this point in the history
…perties fn (#588)
  • Loading branch information
Kelly Wallach authored Sep 21, 2023
2 parents be0375a + 7330d49 commit d1cd748
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class SessionReplayPlugin implements EnrichmentPlugin {
sessionReplay.setSessionId(event.session_id);
}

const sessionRecordingProperties = sessionReplay.getSessionRecordingProperties();
const sessionRecordingProperties = sessionReplay.getSessionReplayProperties();
event.event_properties = {
...event.event_properties,
...sessionRecordingProperties,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type MockedSessionReplayBrowser = jest.Mocked<typeof import('@amplitude/session-
type MockedLogger = jest.Mocked<Logger>;

describe('SessionReplayPlugin', () => {
const { init, setSessionId, getSessionRecordingProperties, shutdown } =
const { init, setSessionId, getSessionReplayProperties, shutdown } =
sessionReplayBrowser as MockedSessionReplayBrowser;
const mockLoggerProvider: MockedLogger = {
error: jest.fn(),
Expand Down Expand Up @@ -127,7 +127,7 @@ describe('SessionReplayPlugin', () => {
test('should add event property for [Amplitude] Session Recorded', async () => {
const sessionReplay = sessionReplayPlugin();
await sessionReplay.setup(mockConfig);
getSessionRecordingProperties.mockReturnValueOnce({
getSessionReplayProperties.mockReturnValueOnce({
'[Amplitude] Session Recorded': true,
});
const event = {
Expand Down

0 comments on commit d1cd748

Please sign in to comment.