Skip to content

Commit

Permalink
Remove unnecessary appBuild and appVersion config in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matus-tomlein committed Dec 12, 2024
1 parent 56eb447 commit 4f741ef
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions trackers/react-native-tracker/test/plugins/app_lifecycle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ describe('Application lifecycle plugin', () => {
callback: (pb) => payloads.push(pb.build()),
base64: false,
});
const appLifecyclePlugin = await newAppLifecyclePlugin(
{
appBuild: '19',
appVersion: '1.0.1',
},
tracker
);
const appLifecyclePlugin = await newAppLifecyclePlugin({}, tracker);
tracker.addPlugin(appLifecyclePlugin);

appStateSpy.mock.calls?.[0]?.[1]('background');
Expand All @@ -39,13 +33,7 @@ describe('Application lifecycle plugin', () => {
callback: (pb) => payloads.push(pb.build()),
base64: false,
});
const appLifecyclePlugin = await newAppLifecyclePlugin(
{
appBuild: '19',
appVersion: '1.0.1',
},
tracker
);
const appLifecyclePlugin = await newAppLifecyclePlugin({}, tracker);
tracker.addPlugin(appLifecyclePlugin);

tracker.track(buildPageView({ pageUrl: 'http://localhost' }));
Expand Down Expand Up @@ -99,13 +87,7 @@ describe('Application lifecycle plugin', () => {
callback: () => {},
base64: false,
});
const appLifecyclePlugin = await newAppLifecyclePlugin(
{
appBuild: '19',
appVersion: '1.0.1',
},
tracker
);
const appLifecyclePlugin = await newAppLifecyclePlugin({}, tracker);
tracker.addPlugin(appLifecyclePlugin);

expect(appStateSpy).toHaveBeenCalledTimes(1);
Expand Down

0 comments on commit 4f741ef

Please sign in to comment.