Fix dynassert test

This commit is contained in:
Pieter Noordhuis 2024-10-28 16:25:53 +01:00
parent 3c3ef41588
commit 3b3bdeef90
No known key found for this signature in database
GPG Key ID: 12ACCCC104CF2930
2 changed files with 5 additions and 1 deletions

View File

@ -111,3 +111,7 @@ func PanicsWithError(t assert.TestingT, errString string, f func(), msgAndArgs .
func NotPanics(t assert.TestingT, f func(), msgAndArgs ...interface{}) bool {
return assert.NotPanics(t, f, msgAndArgs...)
}
func JSONEq(t assert.TestingT, expected string, actual string, msgAndArgs ...interface{}) bool {
return assert.JSONEq(t, expected, actual, msgAndArgs...)
}

View File

@ -4,7 +4,7 @@ import (
"strings"
"testing"
"github.com/stretchr/testify/assert"
assert "github.com/databricks/cli/libs/dyn/dynassert"
"github.com/stretchr/testify/require"
)