mirror of
https://github.com/foomo/squadron.git
synced 2025-10-16 12:35:42 +00:00
17 lines
490 B
Go
17 lines
490 B
Go
package jsonschema_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/foomo/squadron/internal/jsonschema"
|
|
"github.com/stretchr/testify/assert"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestLoadMap(t *testing.T) {
|
|
actual, err := jsonschema.LoadMap(t.Context(), "https://raw.githubusercontent.com/foomo/squadron/refs/heads/main/squadron.schema.json")
|
|
require.NoError(t, err)
|
|
assert.NotNil(t, actual)
|
|
assert.Equal(t, "https://github.com/foomo/squadron/internal/config/config", actual["$id"])
|
|
}
|