Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
Following 3d2c209, `HEAD` routes are no longer shown in the route:list
command. This fixes the related failing tests by asserting that the
command output doesn’t contain the term `HEAD`.
  • Loading branch information
KevSlashNull committed Feb 13, 2022
1 parent 3d2c209 commit 5a8a29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/console/route_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ func Test_route_list_shows_routes(t *testing.T) {
result := TrimDoubleSpaces(writer.String())
require.Contains(t, result, "\x1b[33mMETHOD\x1b[0m \x1b[33mURI\x1b[0m \x1b[33mCONTROLLER\x1b[0m \x1b[33mNAME\x1b[0m")
require.Contains(t, result, "GET /api github.com/confetti-framework/foundation/test/console.Test_route_list_shows_routes.func1")
require.Contains(t, result, "HEAD /api github.com/confetti-framework/foundation/test/console.Test_route_list_shows_routes.func1")
require.NotContains(t, result, "HEAD")
require.Contains(t, result, "POST /api/users github.com/confetti-framework/foundation/test/console.storeUsers users.store")
}

0 comments on commit 5a8a29a

Please # to comment.