Skip to content

Commit

Permalink
Revert "docs: add readme to vtl resolvers directory (#6718)"
Browse files Browse the repository at this point in the history
This reverts commit bc19340.
  • Loading branch information
nikhname committed Mar 9, 2021
1 parent 9e64969 commit cb6fbb5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ describe('create artifacts', () => {

it('writes the default custom resources stack', async () => {
await cfnApiArtifactHandler.createArtifacts(addRequestStub);
expect(fs_mock.copyFileSync.mock.calls.length).toBe(2);
expect(fs_mock.copyFileSync.mock.calls[1]).toEqual([
expect(fs_mock.copyFileSync.mock.calls.length).toBe(1);
expect(fs_mock.copyFileSync.mock.calls[0]).toEqual([
path.join(rootAssetDir, 'cloudformation-templates', 'defaultCustomResources.json'),
path.join(backendDirPathStub, category, addRequestStub.serviceConfiguration.apiName, 'stacks', 'CustomResources.json'),
]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class CfnApiArtifactHandler implements ApiArtifactHandler {
const stacksDirectoryPath = path.join(resourceDir, stacksDirName);
if (!fs.existsSync(stacksDirectoryPath)) {
fs.mkdirSync(stacksDirectoryPath);
fs.copyFileSync(path.join(rootAssetDir, 'resolver-readme', 'README.md'), path.join(resolverDirectoryPath, 'README.md'));
}

// During API add, make sure we're creating a transform.conf.json file with the latest version the CLI supports.
Expand Down

0 comments on commit cb6fbb5

Please sign in to comment.