Temporary rename to edx.bi.profile.viewed.

This commit is contained in:
Robert Raposa
2019-03-05 01:37:00 -05:00
parent 0671fa5d26
commit b24f6db050
2 changed files with 5 additions and 4 deletions

View File

@@ -42,8 +42,9 @@ export class ProfilePage extends React.Component {
componentDidMount() {
this.props.fetchProfile(this.props.match.params.username);
logEvent('edx.profile.viewed', {
profileUsername: this.props.match.params.username,
// TODO: Rename 'edx.bi.profile.viewed' when the event is finalized
logEvent('edx.bi.profile.viewed', {
username: this.props.match.params.username,
});
}

View File

@@ -39,9 +39,9 @@ describe('<ProfilePage />', () => {
));
expect(analytics.logEvent.mock.calls.length).toBe(1);
expect(analytics.logEvent.mock.calls[0][0]).toEqual('edx.profile.viewed');
expect(analytics.logEvent.mock.calls[0][0]).toEqual('edx.bi.profile.viewed');
expect(analytics.logEvent.mock.calls[0][1]).toEqual({
profileUsername: 'test-username',
username: 'test-username',
});
});
});