Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yk-eukarya committed Feb 19, 2025
1 parent 866fdb9 commit 5645e3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
11 changes: 6 additions & 5 deletions server/pkg/exporters/geojson_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"testing"
"time"

"github.com/iancoleman/orderedmap"
"github.com/reearth/reearth-cms/server/pkg/id"
"github.com/reearth/reearth-cms/server/pkg/item"
"github.com/reearth/reearth-cms/server/pkg/schema"
Expand Down Expand Up @@ -81,15 +82,15 @@ func TestFeatureCollectionFromItems(t *testing.T) {
Type: lo.ToPtr(GeometryTypeLineString),
Coordinates: &c,
}
p := make(map[string]interface{})
p["Name"] = []any{"a", "b", "c"}
p["Age"] = int64(30)
p["IsMarried"] = true
p := orderedmap.New()
p.Set("Name", []any{"a", "b", "c"})
p.Set("Age", int64(30))
p.Set("IsMarried", true)

f := Feature{
Type: lo.ToPtr(FeatureTypeFeature),
Geometry: &g,
Properties: &p,
Properties: p,
Id: vi1.Value().ID().Ref().StringRef(),
}

Expand Down
3 changes: 2 additions & 1 deletion server/pkg/integrationapi/item_export_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"encoding/json"
"testing"

"github.com/iancoleman/orderedmap"
"github.com/reearth/reearth-cms/server/pkg/exporters"
"github.com/reearth/reearth-cms/server/pkg/id"
"github.com/reearth/reearth-cms/server/pkg/item"
Expand Down Expand Up @@ -120,7 +121,7 @@ func TestFeatureCollectionFromItems(t *testing.T) {
},
Type: lo.ToPtr(GeometryTypePoint),
},
Properties: &map[string]interface{}{},
Properties: orderedmap.New(),
Type: lo.ToPtr(FeatureTypeFeature),
},
},
Expand Down

0 comments on commit 5645e3c

Please sign in to comment.