Skip to content

Commit

Permalink
fix: update library name to match 1.x library name in context (#1014)
Browse files Browse the repository at this point in the history
* fix library name
  • Loading branch information
niallzato authored Oct 22, 2024
1 parent bbcf40c commit 1706ac5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/E2E/e2e/main.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe('#mainTest', () => {
expect(request.batch).toHaveLength(1);
expect(context.app.name).toBe('AnalyticsReactNativeE2E');
expect(context.app.version).toBe('1.0');
expect(context.library.name).toBe('@segment/analytics-react-native');
expect(context.library.name).toBe('analytics-react-native');
expect(context.locale).toBe('en-US');
// This test only works in iOS for now
if (device.getPlatform() === 'ios') {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/__tests__/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe('#getContext', () => {
type: 'phone',
},
library: {
name: packageJson.name,
name: 'analytics-react-native',
version: packageJson.version,
},
locale: 'en_US',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const getContext = async (
},
device,
library: {
name: libraryInfo.name,
name: 'analytics-react-native',
version: libraryInfo.version,
},
locale,
Expand Down

0 comments on commit 1706ac5

Please sign in to comment.