Chore: Deprecate FolderID in libraryElement struct in tests (#77473)

* Chore: Deprecate FolderID in LibraryElement struct in tests

* chore: revert formatting for deprecation comment
This commit is contained in:
Kat Yang
2023-11-06 11:31:15 -05:00
committed by GitHub
parent 2c7f364067
commit 911ffed45b
5 changed files with 29 additions and 26 deletions
@@ -49,7 +49,7 @@ func TestPatchLibraryElement(t *testing.T) {
Result: libraryElement{
ID: 1,
OrgID: 1,
FolderID: newFolder.ID,
FolderID: newFolder.ID, // nolint:staticcheck
UID: sc.initialResult.Result.UID,
Name: "Panel - New name",
Kind: int64(model.PanelElement),
@@ -100,6 +100,7 @@ func TestPatchLibraryElement(t *testing.T) {
resp := sc.service.patchHandler(sc.reqContext)
require.Equal(t, 200, resp.Status())
var result = validateAndUnMarshalResponse(t, resp)
// nolint:staticcheck
sc.initialResult.Result.FolderID = newFolder.ID
sc.initialResult.Result.Meta.CreatedBy.Name = userInDbName
sc.initialResult.Result.Meta.CreatedBy.AvatarUrl = userInDbAvatar