Skip to content

Commit

Permalink
Change references in a test that refers to a Stripe Sample that will …
Browse files Browse the repository at this point in the history
…be archived soon

This commit changes references in the samples_test.go from https://github.com/stripe-samples/adding-sales-tax to https://github.com/stripe-samples/accept-a-payment as the prior repo will be archived soon.
  • Loading branch information
matthewling-stripe authored Jun 16, 2021
1 parent 8e48b2d commit af04982
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion pkg/cmd/samples/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func NewCreateCmd(config *config.Config) *CreateCmd {
Long: `The create command will locally clone a sample, let you select which integration,
client, and server you want to run. It then automatically bootstraps the
local configuration to let you get started faster.`,
Example: `stripe samples create adding-sales-tax
Example: `stripe samples create accept-a-payment
stripe samples create react-elements-card-payment my-payments-form`,
RunE: createCmd.runCreateCmd,
}
Expand Down
26 changes: 13 additions & 13 deletions pkg/samples/samples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,18 @@ func makeRecipe(fs afero.Fs, path string, integrations []string, languages []str

func TestInitialize(t *testing.T) {
fs := afero.NewMemMapFs()
name := "adding-sales-tax"
name := "accept-a-payment"

sample := Samples{
Fs: fs,
Git: &mockGit{
fs: fs,
},
SamplesList: map[string]*SampleData{
"adding-sales-tax": {
Name: "adding-sales-tax",
Description: "Learn how to use PaymentIntents to build a simple checkout flow",
URL: "https://github.com/stripe-samples/adding-sales-tax",
"accept-a-payment": {
Name: "accept-a-payment",
Description: "Learn how to accept a payment",
URL: "https://github.com/stripe-samples/accept-a-payment",
},
},
}
Expand All @@ -85,10 +85,10 @@ func TestInitializeFailsWithEmptyName(t *testing.T) {
fs: fs,
},
SamplesList: map[string]*SampleData{
"adding-sales-tax": {
Name: "adding-sales-tax",
Description: "Learn how to use PaymentIntents to build a simple checkout flow",
URL: "https://github.com/stripe-samples/adding-sales-tax",
"accept-a-payment": {
Name: "accept-a-payment",
Description: "Learn how to accept a payment",
URL: "https://github.com/stripe-samples/accept-a-payment",
},
},
}
Expand All @@ -107,10 +107,10 @@ func TestInitializeFailsWithNonexistentSample(t *testing.T) {
fs: fs,
},
SamplesList: map[string]*SampleData{
"adding-sales-tax": {
Name: "adding-sales-tax",
Description: "Learn how to use PaymentIntents to build a simple checkout flow",
URL: "https://github.com/stripe-samples/adding-sales-tax",
"accept-a-payment": {
Name: "accept-a-payment",
Description: "Learn how to accept a payment",
URL: "https://github.com/stripe-samples/accept-a-payment",
},
},
}
Expand Down

0 comments on commit af04982

Please sign in to comment.