storj/private/version/checker/util_test.go
Egon Elbre 7aa001d62f private/version: document kebabToPascal
Change-Id: Id7bdf969072c330956c093c24b662f4330fc4d4c
2022-03-31 13:52:27 +03:00

21 lines
643 B
Go

// Copyright (C) 2022 Storj Labs, Inc.
// See LICENSE for copying information.
package checker
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestKebabToPascal(t *testing.T) {
require.Equal(t, "StoragenodeUpdater", kebabToPascal("StoragenodeUpdater"))
require.Equal(t, "StoragenodeUpdater", kebabToPascal("storagenode-updater"))
require.Equal(t, "Satellite", kebabToPascal("satellite"))
require.Equal(t, "Storagenode", kebabToPascal("storagenode"))
require.Equal(t, "Uplink", kebabToPascal("uplink"))
require.Equal(t, "Gateway", kebabToPascal("gateway"))
require.Equal(t, "Identity", kebabToPascal("identity"))
}