Skip to content

Commit

Permalink
fix: update test file to replace app name
Browse files Browse the repository at this point in the history
  • Loading branch information
pawanpaudel93 committed Dec 22, 2024
1 parent 9c8c7e7 commit b573681
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ const main = async () => {
aodConfig = aodConfig.replaceAll("my_ao_contract", `"${scopedAppName}"`).replaceAll("my-ao-contract", scopedAppName);
fs.writeFileSync(path.join(projectDir, "aod.config.js"), aodConfig);

// Update test/contract_test.js
let testContent = fs.readFileSync(path.join(projectDir, "test", "contract_test.js"), "utf-8");
testContent = testContent.replaceAll("my-ao-contract", scopedAppName);
fs.writeFileSync(path.join(projectDir, "test", "contract_test.js"), testContent);

// Update README.md
let readmeContent = fs.readFileSync(path.join(projectDir, "README.md"), "utf-8");
readmeContent = readmeContent.replaceAll("my-ao-contract", scopedAppName);
Expand Down

0 comments on commit b573681

Please sign in to comment.