Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak committed Apr 19, 2023
1 parent 45a6bd2 commit bbc4b47
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ exports[`should edit template 3`] = `
- First value
+ Second value
@@ -4,14 +4,14 @@
@@ -6,17 +6,14 @@
\\"/android/com\\",
- \\"/android/com/placeholdername\\",
- \\"/android/com/placeholdername/Main.java\\",
Expand All @@ -69,12 +69,12 @@ exports[`should edit template 3`] = `
- \\"/ios/PlaceholderName-tvOS/.gitkeep\\",
- \\"/ios/PlaceholderNameTests\\",
- \\"/ios/PlaceholderNameTests/.gitkeep\\",
+ \\"/ios/ProjectName\\",
\\"/ios/ProjectName\\",
+ \\"/ios/ProjectName/AppDelegate.m\\",
+ \\"/ios/ProjectName/project.pbxproj\\",
+ \\"/ios/ProjectName-tvOS\\",
\\"/ios/ProjectName-tvOS\\",
+ \\"/ios/ProjectName-tvOS/.gitkeep\\",
+ \\"/ios/ProjectNameTests\\",
\\"/ios/ProjectNameTests\\",
+ \\"/ios/ProjectNameTests/.gitkeep\\",
\\"/node_modules\\","
`;
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/src/commands/init/__tests__/editTemplate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,13 @@ describe('replacePlaceholderWithPackageName', () => {
placeholderTitle: 'Test',
packageName: PACKAGE_NAME,
});
const [prefix, ...segments] = PACKAGE_NAME.split('.');

const mainActivityFile = fs.readFileSync(
path.resolve(
testPath,
'android',
prefix,
segments.join('.'),
'com',
PACKAGE_NAME,
'MainActivity.java',
),
'utf8',
Expand Down

0 comments on commit bbc4b47

Please sign in to comment.