mirror of
https://github.com/ProtonMail/proton-bridge.git
synced 2025-12-17 23:56:56 +00:00
Other: require go 1.18 and update to golangci-lint to latest revision + fixes.
This commit is contained in:
@ -13,7 +13,7 @@ check-go:
|
||||
check-godog:
|
||||
@which godog || $(MAKE) install-godog
|
||||
install-godog: check-go
|
||||
go get github.com/cucumber/godog/cmd/godog@v0.12.1
|
||||
go install github.com/cucumber/godog/cmd/godog@v0.12.5
|
||||
|
||||
test: test-bridge
|
||||
test-bridge: FEATURES ?= features
|
||||
|
||||
@ -33,6 +33,8 @@ import (
|
||||
"github.com/sirupsen/logrus"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"golang.org/x/text/cases"
|
||||
"golang.org/x/text/language"
|
||||
)
|
||||
|
||||
type SMTPClient struct {
|
||||
@ -82,7 +84,7 @@ func (c *SMTPClient) SendCommands(commands ...string) *SMTPResponse {
|
||||
|
||||
for _, command := range commands {
|
||||
command = strings.ReplaceAll(command, "[userAddress]", c.address)
|
||||
command = strings.ReplaceAll(command, "[userAddress|capitalize]", strings.Title(c.address))
|
||||
command = strings.ReplaceAll(command, "[userAddress|capitalize]", cases.Title(language.Und).String(c.address))
|
||||
|
||||
tstart := time.Now()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user