Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaforce committed Feb 20, 2025
1 parent 974135b commit edc304a
Showing 1 changed file with 28 additions and 35 deletions.
63 changes: 28 additions & 35 deletions server/internal/usecase/interactor/storytelling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,41 +157,34 @@ func TestImportStory(t *testing.T) {
// expected
var expectedMap map[string]interface{}
err = json.Unmarshal([]byte(fmt.Sprintf(`{
"title": "",
"alias": "",
"pages": [
{
"title": "Untitled",
"blocks": [
{
"pluginId": "reearth",
"extensionId": "textStoryBlock"
},
{
"pluginId": "reearth",
"extensionId": "mdTextStoryBlock"
},
{
"pluginId": "reearth",
"extensionId": "imageStoryBlock"
}
],
"swipeable": false,
"layersIds": null,
"layers": null
}
],
"publishmentStatus": "",
"sceneId": "%s",
"panelPosition": "RIGHT",
"bgColor": "#b2efd8ff",
"isBasicAuthActive": false,
"basicAuthUsername": "",
"basicAuthPassword": "",
"publicTitle": "",
"publicDescription": "",
"publicImage": "",
"publicNoIndex": false
"alias": "",
"basicAuthPassword": "",
"basicAuthUsername": "",
"bgColor": "#b2efd8ff",
"enableGa": false,
"isBasicAuthActive": false,
"pages": [
{
"blocks": [
{ "extensionId": "textStoryBlock", "pluginId": "reearth" },
{ "extensionId": "mdTextStoryBlock", "pluginId": "reearth" },
{ "extensionId": "imageStoryBlock", "pluginId": "reearth" }
],
"layers": null,
"layersIds": null,
"swipeable": false,
"title": "Untitled"
}
],
"panelPosition": "RIGHT",
"publicDescription": "",
"publicImage": "",
"publicNoIndex": false,
"publicTitle": "",
"publishmentStatus": "",
"sceneId": "%s",
"title": "",
"trackingId": ""
}`, scene.ID())), &expectedMap)
assert.NoError(t, err)
expectedJSON, err := json.Marshal(expectedMap)
Expand Down

0 comments on commit edc304a

Please sign in to comment.