storj/satellite/console/consoleweb/consoleql/consoleerrors_test.go
2019-09-04 18:02:39 +03:00

20 lines
379 B
Go

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
package consoleql
import (
"testing"
"github.com/stretchr/testify/assert"
"storj.io/storj/satellite/console"
)
func TestHandleError(t *testing.T) {
err := console.ErrConsoleInternal.New("a")
handledError := HandleError(err)
assert.Equal(t, handledError.Error(), internalErrDetailedMsg)
}