Upgrade Ginkgo to V2

This commit is contained in:
Deluan
2022-07-26 16:47:16 -04:00
parent 0d8eaa2878
commit 31882abf6f
98 changed files with 190 additions and 190 deletions
@@ -5,7 +5,7 @@ import (
"github.com/bradleyjkemp/cupaloy"
"github.com/navidrome/navidrome/log"
"github.com/onsi/ginkgo"
"github.com/onsi/ginkgo/v2"
"github.com/onsi/gomega"
"github.com/onsi/gomega/types"
)
@@ -26,7 +26,7 @@ type snapshotMatcher struct {
}
func (matcher snapshotMatcher) Match(actual interface{}) (success bool, err error) {
err = matcher.c.SnapshotMulti(ginkgo.CurrentGinkgoTestDescription().FullTestText, actual)
err = matcher.c.SnapshotMulti(ginkgo.CurrentSpecReport().FullText(), actual)
success = err == nil
return
}
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/navidrome/navidrome/consts"
. "github.com/navidrome/navidrome/server/subsonic/responses"
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)