Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
fix: property.SchemaListMap.List test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Apr 6, 2022
1 parent fef60e6 commit 3e6dff1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/property/schema_list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ func TestSchemaList_MapToIDs(t *testing.T) {
func TestSchemaMap_List(t *testing.T) {
p1 := &Schema{id: MustSchemaID("foo~1.0.0/a")}
p2 := &Schema{id: MustSchemaID("bar~1.0.0/a")}
assert.Equal(t, SchemaList{p1, p2}, SchemaMap{p1.ID(): p1, p2.ID(): p2}.List())
list := SchemaMap{p1.ID(): p1, p2.ID(): p2}.List()
assert.Len(t, list, 2)
assert.Contains(t, list, p1)
assert.Contains(t, list, p2)
assert.Nil(t, SchemaMap(nil).List())
}

0 comments on commit 3e6dff1

Please sign in to comment.