Skip to content

Commit

Permalink
Adds whitespace for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
ForestEckhardt authored and ryanmoran committed Mar 18, 2022
1 parent f4c4bbd commit 9caf1ce
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 35 deletions.
46 changes: 23 additions & 23 deletions internal/image_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,33 +31,33 @@ func testImage(t *testing.T, context spec.G, it spec.S) {
case "/v1/buildpacks/some-ns/some-name":
w.WriteHeader(http.StatusOK)
fmt.Fprintln(w, `{
"latest": {
"version": "0.1.0",
"namespace": "some-ns",
"name": "some-name",
"description": "",
"homepage": "",
"licenses": null,
"stacks": [
"some-stack"
],
"id": "a52bd991-0e17-46c0-a413-229b35943765"
},
"versions": [
{
"version": "0.1.0",
"_link": "https://registry.buildpacks.io//api/v1/buildpacks/some-ns/some-name/0.1.0"
}
]
}`)
"latest": {
"version": "0.1.0",
"namespace": "some-ns",
"name": "some-name",
"description": "",
"homepage": "",
"licenses": null,
"stacks": [
"some-stack"
],
"id": "a52bd991-0e17-46c0-a413-229b35943765"
},
"versions": [
{
"version": "0.1.0",
"_link": "https://registry.buildpacks.io//api/v1/buildpacks/some-ns/some-name/0.1.0"
}
]
}`)

case "/v1/buildpacks/paketo-buildpacks/go":
w.WriteHeader(http.StatusOK)
fmt.Fprintln(w, `{
"latest": {
"version": "0.1.0"
}
}`)
"latest": {
"version": "0.1.0"
}
}`)

case "/v1/buildpacks/not/ok":
w.WriteHeader(http.StatusTeapot)
Expand Down
25 changes: 13 additions & 12 deletions update_buildpack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,27 @@ func testUpdateBuildpack(t *testing.T, context spec.G, it spec.S) {
case "/v1/buildpacks/paketo-buildpacks/go-dist":
w.WriteHeader(http.StatusOK)
fmt.Fprintln(w, `{
"latest": {
"version": "0.20.12"
}
}`)
"latest": {
"version": "0.20.12"
}
}`)

case "/v1/buildpacks/paketo-buildpacks/mri":
w.WriteHeader(http.StatusOK)
fmt.Fprintln(w, `{
"latest": {
"version": "0.2.0"
}
}`)
"latest": {
"version": "0.2.0"
}
}`)

case "/v1/buildpacks/paketo-buildpacks/node-engine":
w.WriteHeader(http.StatusOK)
fmt.Fprintln(w, `{
"latest": {
"version": "0.20.22"
}
}`)
"latest": {
"version": "0.20.22"
}
}`)

case goConfigPath:
if req.Method != http.MethodGet {
t.Errorf("Method; got %v, want %v", req.Method, http.MethodGet)
Expand Down

0 comments on commit 9caf1ce

Please sign in to comment.