Skip to content

Commit 0431cc3

Browse files
committed
Update tests to account for the new warnings
1 parent 5f4f7c5 commit 0431cc3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/core/test/expo-plugin/modifyMainApplication.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,9 @@ describe('modifyMainApplication', () => {
141141

142142
const result = await modifyMainApplication(config);
143143

144-
expect(warnOnce).toHaveBeenCalledWith('Skipping MainApplication modification because the file does not exist.');
144+
expect(warnOnce).toHaveBeenCalledWith(
145+
`Can't add 'RNSentrySDK.init' to Android MainApplication, because the file was not found.`,
146+
);
145147
expect(result).toBe(config); // No modification
146148
});
147149

@@ -150,7 +152,9 @@ describe('modifyMainApplication', () => {
150152

151153
const result = await modifyMainApplication(config);
152154

153-
expect(warnOnce).toHaveBeenCalledWith(`Your 'MainApplication.java' already contains 'RNSentrySDK.init'.`);
155+
expect(warnOnce).toHaveBeenCalledWith(
156+
`Your 'MainApplication.java' already contains 'RNSentrySDK.init', the native code won't be updated.`,
157+
);
154158
expect(result).toBe(config); // No modification
155159
});
156160

0 commit comments

Comments
 (0)