Skip to content

Commit

Permalink
chore(docs): link straight to Registry docs and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xiehan committed Dec 12, 2023
1 parent 49888c9 commit e2837e3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ This repo builds and publishes the [Terraform ${providerName} provider](https://
underlyingTerraformVersion !== "<unknown>"
? underlyingTerraformVersion
: versionURL
}) bindings for [CDK for Terraform](https://cdk.tf).
}/docs) bindings for [CDK for Terraform](https://cdk.tf).
## Available Packages
Expand Down
12 changes: 6 additions & 6 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 4 additions & 10 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,20 +90,14 @@ test("README contains provided Namespace", () => {

expect(snapshotWithVersion["README.md"]).toEqual(
expect.stringContaining(
"- [Terraform random Provider](https://registry.terraform.io/providers/hashicorp/random/3.1.0)"
) &&
expect.stringContaining(
"- This links to the minimum version being tracked, you can find the latest released version [in our releases](https://github.com/cdktf/cdktf-provider-random/releases)"
)
"- [Terraform random provider](https://registry.terraform.io/providers/hashicorp/random/3.1.0)"
)
);

expect(snapshotWithoutVersion["README.md"]).toEqual(
expect.stringContaining(
"- [Terraform random Provider](https://registry.terraform.io/providers/hashicorp/random/)"
) &&
expect.stringContaining(
"- This links to the minimum version being tracked, you can find the latest released version [in our releases](https://github.com/cdktf/cdktf-provider-random/releases)"
)
"- [Terraform random provider](https://registry.terraform.io/providers/hashicorp/random/)"
)
);
});

Expand Down

0 comments on commit e2837e3

Please sign in to comment.