chore: Cleanup sandbox registry

This commit is contained in:
Abhisek Datta
2026-01-08 16:22:31 +05:30
parent eeeed76f07
commit 8ba18338d9
4 changed files with 34 additions and 18 deletions
+23
View File
@@ -0,0 +1,23 @@
package sandbox
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewDefaultProfileRegistry(t *testing.T) {
registry, err := newDefaultProfileRegistry()
assert.NoError(t, err)
assert.NotNil(t, registry)
assert.Greater(t, len(registry.profiles), 0)
npmRestrictive, err := registry.GetProfile("npm-restrictive")
assert.NoError(t, err)
assert.NotNil(t, npmRestrictive)
pypiRestrictive, err := registry.GetProfile("pypi-restrictive")
assert.NoError(t, err)
assert.NotNil(t, pypiRestrictive)
}