Skip to content

Commit 791bc47

Browse files
committed
chore: reformat code
1 parent 3314d8f commit 791bc47

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

cli/commands/initCommand/test/initIos.test.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ const objcTemplate = `
8383
`;
8484

8585
describe('iOS init command - pure functions', () => {
86-
it('should correctly modify Swift AppDelegate content', () => {
87-
const modifiedContent = modifySwiftAppDelegate(swiftTemplate);
88-
expect(modifiedContent).toContain('CodePush.bundleURL()');
89-
expect(modifiedContent).not.toContain('Bundle.main.url(forResource: "main", withExtension: "jsbundle")');
90-
});
86+
it('should correctly modify Swift AppDelegate content', () => {
87+
const modifiedContent = modifySwiftAppDelegate(swiftTemplate);
88+
expect(modifiedContent).toContain('CodePush.bundleURL()');
89+
expect(modifiedContent).not.toContain('Bundle.main.url(forResource: "main", withExtension: "jsbundle")');
90+
});
9191

92-
it('should correctly modify Objective-C AppDelegate content', () => {
93-
const modifiedContent = modifyObjectiveCAppDelegate(objcTemplate);
94-
expect(modifiedContent).toContain('#import <CodePush/CodePush.h>');
95-
expect(modifiedContent).toContain('[CodePush bundleURL]');
96-
expect(modifiedContent).not.toContain('[[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];');
97-
});
92+
it('should correctly modify Objective-C AppDelegate content', () => {
93+
const modifiedContent = modifyObjectiveCAppDelegate(objcTemplate);
94+
expect(modifiedContent).toContain('#import <CodePush/CodePush.h>');
95+
expect(modifiedContent).toContain('[CodePush bundleURL]');
96+
expect(modifiedContent).not.toContain('[[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];');
97+
});
9898
});

0 commit comments

Comments
 (0)