1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-09 17:45:03 +09:00
any-sync/pkg/acl/tree/objecttree_test.go
2022-09-06 18:08:24 +02:00

21 lines
482 B
Go

package tree
import (
"context"
"github.com/anytypeio/go-anytype-infrastructure-experiments/app"
"github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/acl/storage"
"testing"
)
func TestObjectTree(t *testing.T) {
a := &app.App{}
inmemory := storage.NewInMemoryTreeStorage(...)
app.RegisterWithType[storage.TreeStorage](a, inmemory)
app.RegisterWithType[]()
a.Start(context.Background())
objectTree := app.MustComponentWithType[ObjectTree](a).(ObjectTree)
}