Skip to content

Commit cac370f

Browse files
committed
fix example
Signed-off-by: Pavel Okhlopkov <pavel.okhlopkov@flant.com>
1 parent ba86bbe commit cac370f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

examples/single-file-app-example/hooks/main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/deckhouse/module-sdk/pkg"
1212
"github.com/deckhouse/module-sdk/testing/mock"
1313

14-
singlefileexample "singlefileexample"
14+
singlefileappexample "singlefileappexample"
1515
)
1616

1717
const (
@@ -21,7 +21,7 @@ const (
2121

2222
var _ = Describe("handle hook single file example", func() {
2323
snapshots := mock.NewSnapshotsMock(GinkgoT())
24-
snapshots.GetMock.When(singlefileexample.SnapshotKey).Then(
24+
snapshots.GetMock.When(singlefileappexample.SnapshotKey).Then(
2525
[]pkg.Snapshot{
2626
mock.NewSnapshotMock(GinkgoT()).UnmarshalToMock.Set(func(v any) error {
2727
str := v.(*string)
@@ -49,7 +49,7 @@ var _ = Describe("handle hook single file example", func() {
4949

5050
Context("reconcile func", func() {
5151
It("reconcile func executed correctly", func() {
52-
err := singlefileexample.Handle(context.Background(), input)
52+
err := singlefileappexample.Handle(context.Background(), input)
5353
Expect(err).ShouldNot(HaveOccurred())
5454
})
5555
})

0 commit comments

Comments
 (0)