Temporary rename to edx.bi.profile.viewed.
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user