Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
enhance unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahelmy committed Jan 20, 2024
1 parent 40e2a8a commit e8966eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ func TestJWTPage(t *testing.T) {
jwtPage(app)
t.Run("Test JWT Page", func(t *testing.T) {
// Create a test request to the "/jwt" route with jwt=...
req := httptest.NewRequest(http.MethodGet, "/jwt?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c", nil)
req := httptest.NewRequest(http.MethodGet, "/jwt?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c&header=&claims=&secret=&action=decode", nil)
resp, err := app.Test(req)
if err != nil {
t.Fatalf("Failed to send test request: %v", err)
Expand Down
4 changes: 2 additions & 2 deletions server/ui/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="container-fluid">
<div class="container-fluid text-center">
<div class="row">
<div class="col-12">
&nbsp;
</div>
</div>
<div class="row g-5">
<div class="row g-5 row-cols-auto">
<div class="col">
<a href="/uuid" class="card-link">
<div class="card min-h-200" style="width: 18rem;">
Expand Down

0 comments on commit e8966eb

Please sign in to comment.