From 69d2e0a530347570dd76c8341e538072189ae493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Mur=C3=A9?= Date: Fri, 30 Aug 2024 22:50:23 +0200 Subject: [PATCH] command: small fixes --- capability/command/command_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/capability/command/command_test.go b/capability/command/command_test.go index 7d83004..3944038 100644 --- a/capability/command/command_test.go +++ b/capability/command/command_test.go @@ -3,12 +3,12 @@ package command_test import ( "testing" - "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/ucan-wg/go-ucan/pkg/command" + + "github.com/ucan-wg/go-ucan/capability/command" ) -func TestCommand_String(t *testing.T) { +func TestTop(t *testing.T) { require.Equal(t, "/", command.Top().String()) } @@ -73,9 +73,9 @@ func TestParseCommand(t *testing.T) { t.Parallel() cmd, err := command.Parse(testcase.inp) - assert.ErrorIs(t, err, command.ErrParse) - assert.ErrorIs(t, err, testcase.err) - assert.Nil(t, cmd) + require.ErrorIs(t, err, command.ErrParse) + require.ErrorIs(t, err, testcase.err) + require.Nil(t, cmd) }) } })