refactor: switch to alecthomas/assert

This commit is contained in:
Alec Thomas
2022-06-21 20:52:59 +10:00
parent 0066abb973
commit e75e1ca88a
28 changed files with 603 additions and 598 deletions
+5 -5
View File
@@ -6,7 +6,7 @@ package kong_test
import (
"testing"
"github.com/stretchr/testify/require"
require "github.com/alecthomas/assert/v2"
)
func TestPathMapper(t *testing.T) {
@@ -16,10 +16,10 @@ func TestPathMapper(t *testing.T) {
p := mustNew(t, &cli)
_, err := p.Parse([]string{"/an/absolute/path"})
require.NoError(t, err)
require.Equal(t, "/an/absolute/path", cli.Path)
assert.NoError(t, err)
assert.Equal(t, "/an/absolute/path", cli.Path)
_, err = p.Parse([]string{"-"})
require.NoError(t, err)
require.Equal(t, "-", cli.Path)
assert.NoError(t, err)
assert.Equal(t, "-", cli.Path)
}