Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hexaforce committed Feb 6, 2025
1 parent c76e941 commit 76da26f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions server/e2e/gql_asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ func TestAssociateProjectGetAssets(t *testing.T) {
assets.Length().IsEqual(2)
assets.Value(0).Object().HasValue("name", "test.csv")
assets.Value(1).Object().HasValue("name", "test.png")
// ValueDump(assets.Value(0).Object().Value("id"))

assetId0 := assets.Value(0).Object().Value("id").Raw().(string)
assetId1 := assets.Value(1).Object().Value("id").Raw().(string)
Expand All @@ -177,15 +176,15 @@ func TestAssociateProjectGetAssets(t *testing.T) {
assets = res.Path("$.data.assets.nodes").Array()
assets.Length().IsEqual(2) // projectB >>> test.png, test.csv

// Remove project test
updateAsset(e, assetId0, nil)
updateAsset(e, assetId1, nil)
// Remove projectID test
updateAsset(e, assetId0, nil) // projectID > null
updateAsset(e, assetId1, nil) // projectID > null

res = getAssets(e, teamId, &pidB)
assets = res.Path("$.data.assets.nodes").Array()
assets.Length().IsEqual(0) // projectB >>> none

// remove test
// Remove asset test
removeAsset(e, assetId0)
removeAsset(e, assetId1)

Expand Down Expand Up @@ -265,10 +264,6 @@ func removeAsset(e *httpexpect.Expect, assetId string) *httpexpect.Value {
}
}`,
Variables: map[string]any{
// "input": map[string]interface{}{
// "assetId": assetId,
// },

"assetId": assetId,
},
}
Expand Down

0 comments on commit 76da26f

Please sign in to comment.