Skip to content

Commit

Permalink
fix: lints and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ayuhito committed Jun 12, 2024
1 parent e39c9d8 commit 848c22d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,21 @@ import (
"io/fs"
)

// OpenAPI Codegen
// OpenAPI Codegen.
//
//go:generate ./generate.sh

// Embed OpenAPI Specification
// Embed OpenAPI Specification.
//
//go:embed openapi.yaml
var OpenAPIDocument embed.FS

// Embed SPA client
// Embed SPA client.
//
//go:embed all:client
var spaClient embed.FS

// SPA Client
// SPA Client.
func SPAClient() (fs.FS, error) {
return fs.Sub(spaClient, "client")
}
2 changes: 1 addition & 1 deletion core/util/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestAuthCreateAndRead(t *testing.T) {
assert.Equal("/", cookie.Path)
assert.True(cookie.HttpOnly)
assert.True(cookie.Secure)
assert.Equal(http.SameSiteStrictMode, cookie.SameSite)
assert.Equal(http.SameSiteLaxMode, cookie.SameSite)

// Decrypt cookie
userId, err := auth.ReadSession(ctx, cookie.Value)
Expand Down

0 comments on commit 848c22d

Please sign in to comment.