Skip to content

Commit

Permalink
chore: update function test to point to node 14 (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
alharris-at authored May 18, 2022
1 parent 6f187ca commit b34c011
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('nodejs version migration tests', () => {
);
let authStackContent = fs.readFileSync(authStackFileName).toString();

authStackContent = authStackContent.replace('nodejs12.x', 'nodejs10.x');
authStackContent = authStackContent.replace('nodejs14.x', 'nodejs10.x');

fs.writeFileSync(authStackFileName, authStackContent, 'utf-8');

Expand All @@ -84,8 +84,8 @@ describe('nodejs version migration tests', () => {
functionStackContent = fs.readFileSync(functionStackFileName).toString();

expect(projectConfigContent.indexOf('3.1')).toBeGreaterThan(0);
expect(authStackContent.indexOf('nodejs12.x')).toBeGreaterThan(0);
expect(functionStackContent.indexOf('nodejs12.x')).toBeGreaterThan(0);
expect(authStackContent.indexOf('nodejs14.x')).toBeGreaterThan(0);
expect(functionStackContent.indexOf('nodejs14.x')).toBeGreaterThan(0);
});

function amplifyNodeMigrationAndPush(cwd: string) {
Expand Down

0 comments on commit b34c011

Please sign in to comment.