refactor: fix tests

This commit is contained in:
yusing
2025-03-28 01:58:26 +08:00
parent 821e4a225a
commit 9a3c40f6a6
5 changed files with 8 additions and 19 deletions

View File

@@ -29,6 +29,11 @@ func TestIsJSONMarshallable(t *testing.T) {
{
name: "baseError",
err: &baseError{},
want: false,
},
{
name: "baseError with json marshallable error",
err: &baseError{&testErr{}},
want: true,
},
{